Home Page Icon
Home Page
Table of Contents for
Contributors
Close
Contributors
by Benjamin Walter Keller
Mastering Matplotlib 2.x
Title Page
Copyright and Credits
Mastering Matplotlib 2.x
About Packt
Why subscribe?
Packt.com
Contributors
About the author
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews
Heavy Customization
Customizing PyLab using style
How to use styles to change the appearance of our plots
Different Matplotlib styles
Creating your own styles
Deep diving into color
Questions to ask when choosing a color map
Using color maps
Working on non-trivial layouts
The Matplotlib configuration files
Matplotlibrc – where does it live?
Summary
Drawing on Plots
Putting lines in place
Adding horizontal and vertical lines
Adding spans that cover whole regions
Adding and tweaking a background grid
Adding text on your plots
Adding text to both axis and figure objects
Adding text in multi-panel figures
Playing with polygons and shapes
Adding polygons and shapes to our plots
The built-in shapes that Matplotlib provides
Building your own polygons
Versatile annotating
Adding arrows to our plots with the annotate method
Adding some text to the arrows
Customizing the appearance of the annotations
Summary
Special Purpose Plots
Non-Cartesian plots
Creating polar axes
Applying log, symmetric log, and logistic scales to your axes
Plotting vector fields
Making vector plots with quiver
Customizing the appearance of vector plots
Annotating vector plots with a quiver key
Making stream plots
Statistics with boxes and violins
Making box plots to show the interquartile ranges and the outliers
Making violin plots show different distributions
Customizing the appearance of plots
Visualizing ordinal and tabular data
Pie charts
Tables
Customizing the appearance of plots
Summary
3D and Geospatial Plots
Plotting with 3D axes
How to add 3D axes to a figure
How to use the interactive backend to manipulate the 3D plots
How to plot on the 3D axes
Looking at various 3D plot types
How to rotate the camera in 3D plots
How to add line and scatter plots
How to add wireframe, surface, and triangular surface plots
How to add 3D contour types
The basemap methods
How to create map projections
How to choose between different kinds of map projections
Further reading
Plotting on map projections
How to add simple points and lines to our plots
How to draw great circles
How to draw a day/night terminator
Adding geography
How to add coastline and water features
How to add political boundaries for countries, states, and provinces
Summary
Interactive Plotting
Interactive plots in the Jupyter Notebook
How to install and enable the ipywidgets module
How to use the interact method to make basic widgets
How to view the different kinds of widgets that ipywidgets provides
How to customize widgets
Event handling with plot callbacks
How to add interactivity by capturing mouse events
How to capture keyboard clicks
How to use the picker to manipulate plots
GUI neutral widgets
How to add the basic GUI neutral widgets
A selection of the different kinds of widgets that are available in Matplotlib
How to add interactivity to these widgets using callbacks
Making movies
How to generate animations to make plots that update themselves
How to customize the animation frame rate, speed, and repetitions
How to save animations as mp4 videos and animated GIFs
Summary
Other Books You May Enjoy
Leave a review - let other readers know what you think
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Packt.com
Next
Next Chapter
About the author
Contributors
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset