Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Matplotlib 3.0 Cookbook

You're reading from  Matplotlib 3.0 Cookbook

Product type Book
Published in Oct 2018
Publisher Packt
ISBN-13 9781789135718
Pages 676 pages
Edition 1st Edition
Languages
Authors (2):
Srinivasa Rao Poladi Srinivasa Rao Poladi
Profile icon Srinivasa Rao Poladi
Nikhil Borkar Nikhil Borkar
Profile icon Nikhil Borkar
View More author details

Table of Contents (17) Chapters

Preface 1. Anatomy of Matplotlib 2. Getting Started with Basic Plots 3. Plotting Multiple Charts, Subplots, and Figures 4. Developing Visualizations for Publishing Quality 5. Plotting with Object-Oriented API 6. Plotting with Advanced Features 7. Embedding Text and Expressions 8. Saving the Figure in Different Formats 9. Developing Interactive Plots 10. Embedding Plots in a Graphical User Interface 11. Plotting 3D Graphs Using the mplot3d Toolkit 12. Using the axisartist Toolkit 13. Using the axes_grid1 Toolkit 14. Plotting Geographical Maps Using Cartopy Toolkit 15. Exploratory Data Analysis Using the Seaborn Toolkit 16. Other Books You May Enjoy

Using transforms

To refer to a specific point on the graph, we need its co-ordinates. There are four different co-ordinate systems used by Matplotlib with reference to data, axes, figures, and display. In this recipe, we will learn how to use these co-ordinate systems and transform from one co-ordinate system to another:

  • Data: The data co-ordinate system refers to input data points as co-ordinates, and these are controlled by the xlim and ylim parameters to restrict the range of data to be plotted on the graph. The method to transform from the data co-ordinate system to the display co-ordinate system is ax.transData.
  • Axes: The axes co-ordinate system refers to the axes object, with (0,0) being the bottom left corner of the axes and (1, 1) being the top right corner of the axes. The co-ordinate that refers to a point in the center of the axes is (0.5, 0.5). The method that transforms...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}