Matplotlib 3.0 Cookbook
Srinivasa Rao Poladi更新时间:2021-08-13 15:17:47
最新章节:Leave a review - let other readers know what you think封面
Title Page
Copyright and Credits
Matplotlib 3.0 Cookbook
Packt Upsell
Why subscribe?
Packt.com
Contributors
About the author
About the reviewer
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
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Get in touch
Reviews
Anatomy of Matplotlib
Introduction
Architecture of Matplotlib
Backend layer
Artist layer
Scripting layer
Elements of a figure
Figure
Axes
Axis
Label
Legend
Title
Ticklabels
Spines
Grid
Working in interactive mode
Getting ready
How to do it...
How it works...
There's more...
Working in non-interactive mode
How to do it...
How it works...
Reading from external files and plotting
Getting ready
How to do it...
Reading from a .txt file
Reading from a .csv file
Reading from an .xlsx file
Plotting the graph
How it works...
Changing and resetting default environment variables
Getting ready
How to do it...
How it works...
There's more...
Getting Started with Basic Plots
Introduction
Line plot
Getting ready
How to do it...
How it works...
There's more...
Bar plot
Getting ready
How to do it...
How it works...
There's more...
Scatter plot
Getting ready
How to do it...
How it works...
There's more...
Bubble plot
Getting ready
How to do it...
How it works...
Stacked plot
Getting ready
How to do it...
How it works...
Pie plot
Getting ready
How to do it...
How it works...
Table chart
Getting ready
How to do it...
How it works...
Polar plot
Getting ready
How to do it...
How it works...
There's more...
Histogram
Getting ready
How to do it...
How it works...
There's more...
Box plot
Getting ready
How to do it...
How it works...
There's more...
Violin plot
Getting ready
How to do it...
How it works...
Reading and displaying images
Getting ready
How to do it...
How it works...
Heatmap
Getting ready
How to do it...
How it works...
Hinton diagram
Getting ready
How to do it...
How it works...
Contour plot
Getting ready
How to do it...
How it works...
There's more...
Triangulations
Getting ready
How to do it...
How it works...
There's more...
Stream plot
Getting ready
How to do it...
How it works...
There's more...
Path
Getting ready
How to do it...
How it works...
Plotting Multiple Charts Subplots and Figures
Introduction
Plotting multiple graphs on the same axes
Getting ready
How to do it...
How it works...
Plotting subplots on the same figure
Getting ready
How to do it...
How it works...
There's more...
Plotting multiple figures in a session
Getting ready
How to do it...
How it works...
There's more...
Logarithmic scale
Getting ready
How to do it...
How it works...
There's more...
Using units of measurement
Getting ready
How to do it...
How it works...
There's more...
Developing Visualizations for Publishing Quality
Introduction
Color line style and marker customization
Getting ready
How to do it...
How it works...
Working with standard colormaps
Getting ready
How to do it...
How it works...
There's more...
User-defined colors and colormaps
Getting ready
How to do it...
How it works...
There's more...
Working with legend
Getting ready
How to do it...
How it works...
There's more...
Customizing labels and titles
Getting ready
How to do it...
How it works...
There's more...
Using autoscale and axis limits
Getting ready
How to do it...
How it works...
Customizing ticks and ticklabels
Getting ready
How to do it...
How it works...
There's more...
Customizing spines
Getting ready
How to do it...
How it works...
Twin axes
Getting ready
How to do it...
How it works...
There's more...
Using hatch
Getting ready
How to do it...
How it works...
Using annotation
Getting ready
How to do it...
How it works...
Using style sheets
Getting ready
How to do it...
How it works...
There's more...
Plotting with Object-Oriented API
Introduction
Plotting a correlation matrix using pyplot and object-oriented APIs
Getting ready
How to do it...
How it works...
Plotting patches using object-oriented API
Getting ready
How to do it...
How it works...
Plotting collections using object-oriented API
Getting ready
How to do it...
How it works...
Plotting with Advanced Features
Using property cycler
Getting ready
How to do it...
How it works...
There's more...
Using Path effects
Getting ready
How to do it...
How it works...
There's more...
Using transforms
Transforming data co-ordinates to display co-ordinates
Getting ready
How to do it...
How it works...
There's more...
Using axes and blended co-ordinate system transforms
Getting ready
How to do it...
How it works...
Taking control of axes positions
Getting ready
How to do it...
How it works...
GridSpec for figure layout
Using GridSpec
Getting ready
How to do it...
How it works...
There's more...
GridSpec alignment
Getting ready
How to do it...
How it works ...
Constrained layout
Getting ready
How to do it...
How it works...
Using GridSpecFromSubplotSpec
Getting ready
How to do it...
How it works...
Using origin and extent for image orientation
Getting ready
How to do it...
How it works...
Geographical plotting using geopandas
Getting ready
How to do it...
How it works...
Embedding Text and Expressions
Introduction
Using mathematical expressions with a font dictionary
Getting ready
How to do it...
How it works...
Annotating a point on a polar plot
Getting ready
How to do it...
How it works...
Using ConnectionPatch
Getting ready
How to do it...
How it works...
Using a text box
Getting ready
How to do it...
How it works...
There's more...
Plotting area under an integral curve
Getting ready
How to do it...
How it works...
Defining custom markers
Getting ready
How to do it...
How it works...
Fractions regular mathematical expressions and symbols
Getting ready
How to do it...
How it works...
There's more...
Word embeddings in two dimensions
Getting ready
How to do it...
How it works...
Saving the Figure in Different Formats
Introduction
Saving the figure in various formats
Getting ready
How to do it...
How it works...
There's more...
Avoiding truncation while saving the figure
Getting ready
How to do it...
How it works...
Saving partial figures
Getting ready
How to do it...
How it works...
Managing image resolution
Getting ready
How to do it...
How it works...
Managing transparency for web applications
Getting ready
How to do it...
How it works...
Creating multi-page PDF reports
Getting ready
How to do it...
How it works...
Developing Interactive Plots
Introduction
Events and callbacks
Exception handling
Getting ready
How to do it...
How it works...
There's more...
Key press and release events
Getting ready
How to do it...
How it works...
Mouse button press event
Getting ready
How to do it...
How it works...
Motion notify and mouse button press events
Getting ready
How to do it...
How it works...
Pick event
Getting ready
How to do it...
How it works...
Figure and axes enter and leave events
Getting ready
How to do it...
How it works...
Using twin axes for plotting four temperature scales
Getting ready
How to do it...
How it works...
Widgets
Cursor
Getting ready
How to do it...
How it works...
Buttons
Getting ready
How to do it...
How it works...
Check buttons
Getting ready
How to do it...
How it works...
Radio buttons
Getting ready
How to do it...
How it works...
Textbox
Getting ready
How to do it...
How it works...
Animation
Animated sigmoid curve
Getting ready
How to do it...
How it works...
Saving the animation to an mp4 file
Getting ready
How to do it...
How it works...
Exponentially decaying tan function
Getting ready
How to do it...
How it works...
Animated bubble plot
Getting ready
How to do it...
How it works...
Animating multiple line plots
Getting ready
How to do it...
How it works...
Animation of images
Getting ready
How to do it...
How it works...
Embedding Plots in a Graphical User Interface
Introduction
Interface between the Matplotlib and GUI applications
Using the Slider and Button Widgets of Matplotlib
Getting ready
How to do it...
How it works...
Using the Slider and Button widgets of Tkinter GUI
Getting ready
How to do it...
How it works...
Embedding Matplotlib in a Tkinter GUI application
Getting ready
How to do it...
How it works...
Using the Slider and Button widgets of WxPython GUI
Getting ready
How to do it...
How it works...
Embedding Matplotlib in to a wxPython GUI application
Getting ready
How to do it...
How it works...
Using the Slider and Button widgets of Qt's GUI
Getting ready
How to do it...
How it works...
Embedding Matplotlib in to a Qt GUI application
Getting ready
How to do it...
How it works...
Plotting 3D Graphs Using the mplot3d Toolkit
Introduction
Line plot
Getting ready
How to do it...
How it works...
Scatter plot
Getting ready
How to do it...
How it works...
Bar plot
Getting ready
How to do it...
How it works...
Polygon plot
Getting ready
How to do it...
How it works...
There's more...
Contour plot
Getting ready
How to do it...
How it works...
There's more...
Surface plot
Getting ready
How to do it...
How it works...
Wireframe plot
Getting ready
How to do it...
How it works...
Triangular surface plot
Getting ready
How to do it...
How it works...
Plotting 2D data in 3D
Getting ready
How to do it...
How it works...
3D visualization of linearly non-separable data in 2D
Getting ready
How to do it...
How it works...
Word embeddings
Getting ready
How to do it...
How it works...
Using the axisartist Toolkit
Introduction
Understanding attributes in axisartist
Getting ready
How to do it...
How it works...
Defining curvilinear grids in rectangular boxes
Getting ready
How to do it...
How it works...
Defining polar axes in rectangular boxes
Getting ready
How to do it...
How it works...
Using floating axes for a rectangular plot
Getting ready
How to do it...
How it works...
Creating polar axes using floating axes
Getting ready
How to do it...
How it works...
Plotting planetary system data on floating polar axes
Getting ready
How to do it...
How it works...
Using the axes_grid1 Toolkit
Introduction
Plotting twin axes using the axisartist and axesgrid1 toolkits
Getting ready
How to do it...
How it works...
There's more...
Using AxesDivider to plot a scatter plot and associated histograms
Getting ready
How to do it...
How it works...
Using AxesDivider to plot a colorbar
Getting ready
How to do it...
How it works...
Using ImageGrid to plot images with a colorbar in a grid
Getting ready
How to do it...
How it works...
Using inset_locator to zoom in on an image
Getting ready
How to do it...
How it works...
Using inset_locator to plot inset axes
Getting ready
How to do it...
How it works...
Plotting Geographical Maps Using Cartopy Toolkit
Introduction
Plotting basic map features
Getting ready
How to do it...
How it works...
Plotting projections
Getting ready
How to do it...
How it works...
Using grid lines and labels
Getting ready
How to do it...
How it works...
Plotting locations on the map
Getting ready
How to do it...
How it works...
Plotting country maps with political boundaries
Getting ready
How to do it...
How it works...
Plotting country maps using GeoPandas and cartopy
Getting ready
How to do it...
How it works...
Plotting populated places of the world
Getting ready
How to do it...
How it works...
Plotting the top five and bottom five populated countries
Getting ready
How to do it...
How it works...
Plotting temperatures across the globe
Getting ready
How to do it...
How it works...
Plotting time zones
Getting ready
How to do it...
How it works...
Plotting an animated map
Getting ready
How to do it...
How it works...
Exploratory Data Analysis Using the Seaborn Toolkit
Introduction
Snacks Sales dataset
Wine Quality
Semantic and facet variables
Relational plots
Line plots with one-to-one and one-to-many relationships
Getting ready
How to do it...
How it works...
There's more...
Line plots with a long-form dataset
Getting ready
How to do it...
How it works...
Scatter plots
Getting ready
How to do it...
How it works...
There's more...
Categorical plots
Strip and swarm plots
Getting ready
How to do it...
How it works...
Box and boxn plots
Getting ready
How to do it...
How it works...
Bar and count plots
Getting ready
How to do it...
How it works...
Violin plots
Getting ready
How to do it...
How it works...
Point plots
Getting ready
How to do it...
How it works...
Distribution plots
distplot()
Getting ready
How to do it...
How it works...
kdeplot()
Getting ready
How to do it...
How it works...
Regression plots
regplot() and residplot()
Getting ready
How to do it...
How it works...
lmplot()
Getting ready
How to do it...
How it works...
Multi-plot grids
jointplot() and JointGrid()
Getting ready
jointplot()
How to do it...
How it works...
JointGrid()
How to do it...
How it works...
pairplot() and PairGrid()
Getting ready
pairplot()
How to do it...
How it works...
PairGrid()
How to do it...
How it works...
FacetGrid()
Getting ready
How to do it...
How it works...
Matrix plots
Heatmaps
Getting ready
How to do it...
How it works...
Clustermaps
Getting ready
How to do it...
How it works...
Other Books You May Enjoy
Leave a review - let other readers know what you think
更新时间:2021-08-13 15:17:47