售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
matplotlib Plotting Cookbook
Table of Contents
matplotlib Plotting Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. First Steps
Introduction
Installing matplotlib
How to do it...
Plotting one curve
Getting ready
How to do it...
How it works...
There's more...
Using NumPy
Getting ready
How to do it...
How it works...
There's more...
Plotting multiple curves
How to do it...
How it works...
There's more...
Plotting curves from file data
How to do it...
How it works...
There's more...
Plotting points
How to do it...
How it works...
Plotting bar charts
How to do it...
How it works...
There's more...
The thickness of a bar
Horizontal bars
Plotting multiple bar charts
How to do it...
How it works...
There's more...
Plotting stacked bar charts
How to do it...
How it works...
There's more...
Plotting back-to-back bar charts
How to do it...
How it works...
Plotting pie charts
How to do it...
How it works...
Plotting histograms
How to do it...
How it works...
Plotting boxplots
How to do it...
How it works...
There's more...
Plotting triangulations
How to do it...
How it works...
2. Customizing the Color and Styles
Introduction
Defining your own colors
Getting ready
How to do it...
How it works...
Using custom colors for scatter plots
Getting ready
How to do it...
How it works...
There's more...
Using custom colors for bar charts
How to do it...
How it works...
There's more...
Using custom colors for pie charts
How to do it...
How it works...
Using custom colors for boxplots
How to do it...
How it works...
Using colormaps for scatter plots
How to do it...
How it works...
Using colormaps for bar charts
How to do it...
How it works...
Controlling a line pattern and thickness
How to do it...
How it works...
There's more...
The line style with other plot types
The line width
Controlling a fill pattern
How to do it...
How it works...
Controlling a marker's style
Getting ready
How to do it...
How it works...
There's more...
Controlling a marker's size
How to do it...
There's more...
Creating your own markers
How to do it...
How it works...
Getting more control over markers
How to do it...
How it works...
Creating your own color scheme
How to do it...
How it works...
There's more...
3. Working with Annotations
Introduction
Adding a title
How to do it...
How it works...
Using LaTeX-style notations
Getting ready
How to do it...
How it works...
Adding a label to each axis
How to do it...
How it works...
Adding text
How to do it...
How it works...
There's more...
Alignment control
Bounding box control
Adding arrows
How to do it...
How it works...
Adding a legend
How to do it...
How it works...
There's more...
Adding a grid
How to do it...
How it works...
Adding lines
How to do it...
How it works...
Adding shapes
How to do it...
How it works...
There's more...
Working with polygons
Working with path attributes
Controlling tick spacing
How to do it...
How it works...
There's more...
Controlling tick labeling
How to do it...
How it works...
There's more...
A simpler way to create bar charts with fixed labels
Advanced label generation
4. Working with Figures
Introduction
Compositing multiple figures
How to do it...
How it works...
There's more...
An alternative way to composite figures
Scaling both the axes equally
How to do it...
How it works...
Setting an axis range
How to do it...
How it works...
Setting the aspect ratio
How to do it...
How it works...
Inserting subfigures
How to do it...
How it works...
Using a logarithmic scale
How to do it...
How it works...
There's more...
Using polar coordinates
How to do it...
How it works...
There's more...
5. Working with a File Output
Introduction
Generating a PNG picture file
How to do it...
How it works...
Handling transparency
How to do it...
Rendering a figure to a PNG file with a transparent background
Making a HTML page that includes the figure
How it works...
There's more...
Controlling the output resolution
How to do it...
How it works...
There's more...
Generating PDF or SVG documents
How to do it...
How it works...
There's more...
Handling multiple-page PDF documents
How to do it...
How it works...
There's more...
6. Working with Maps
Introduction
Visualizing the content of a 2D array
How to do it...
How it works...
There's more…
Adding a colormap legend to a figure
How to do it...
How it works...
Visualizing nonuniform 2D data
How to do it...
How it works...
Visualizing a 2D scalar field
How to do it...
How it works...
Visualizing contour lines
How to do it...
How it works...
There's more...
Visualizing a 2D vector field
Getting ready
How to do it...
How it works...
Visualizing the streamlines of a 2D vector field
How to do it...
How it works...
There's more...
7. Working with 3D Figures
Introduction
Creating 3D scatter plots
How to do it...
How it works...
There's more...
Creating 3D curve plots
How to do it…
How it works...
Plotting a scalar field in 3D
How to do it...
How it works...
There's more...
Plotting a parametric 3D surface
How to do it...
How it works...
There's more...
Embedding 2D figures in a 3D figure
How to do it...
How it works...
There's more...
Creating a 3D bar plot
How to do it...
How it works...
8. User Interface
Introduction
Making a user-controllable plot
How to do it...
How it works...
There's more...
Integrating a plot to a Tkinter user interface
How to do it...
How it works...
Integrating a plot to a wxWidgets user interface
How to do it...
How it works...
Integrating a plot to a GTK user interface
Getting ready
How to do it...
How it works...
Integrating a plot in a Pyglet application
How to do it...
How it works...
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜