logo资料库

Matplotlib.pdf

第1页 / 共1238页
第2页 / 共1238页
第3页 / 共1238页
第4页 / 共1238页
第5页 / 共1238页
第6页 / 共1238页
第7页 / 共1238页
第8页 / 共1238页
资料共1238页,剩余部分请下载后查看
I User's Guide
Introduction
Installing
Manually installing pre-built packages
Installing from source
Build requirements
Building on OSX
Pyplot tutorial
Controlling line properties
Working with multiple figures and axes
Working with text
Interactive navigation
Navigation Keyboard Shortcuts
Customizing matplotlib
The matplotlibrc file
Dynamic rc settings
Using matplotlib in a python shell
Ipython to the rescue
Other python interpreters
Controlling interactive updating
Working with text
Text introduction
Basic text commands
Text properties and layout
Writing mathematical expressions
Typesetting With XeLaTeX/LuaLaTeX
Text rendering With LaTeX
Annotating text
Image tutorial
Startup commands
Importing image data into Numpy arrays
Plotting numpy arrays as images
Artist tutorial
Customizing your objects
Object containers
Figure container
Axes container
Axis containers
Tick containers
Customizing Location of Subplot Using GridSpec
Basic Example of using subplot2grid
GridSpec and SubplotSpec
Adjust GridSpec layout
GridSpec using SubplotSpec
A Complex Nested GridSpec using SubplotSpec
GridSpec with Varying Cell Sizes
Tight Layout guide
Simple Example
Legend guide
What to be displayed
Multicolumn Legend
Legend location
Multiple Legend
Legend of Complex Plots
Event handling and picking
Event connections
Event attributes
Mouse enter and leave
Object picking
Transformations Tutorial
Data coordinates
Axes coordinates
Blended transformations
Using offset transforms to create a shadow effect
The transformation pipeline
Path Tutorial
Bézier example
Compound paths
Annotating Axes
Annotating with Text with Box
Annotating with Arrow
Placing Artist at the anchored location of the Axes
Using Complex Coordinate with Annotation
Using ConnectorPatch
Zoom effect between Axes
Define Custom BoxStyle
Our Favorite Recipes
Sharing axis limits and views
Easily creating subplots
Fixing common date annoyances
Fill Between and Alpha
Transparent, fancy legends
Placing text boxes
Screenshots
Simple Plot
Subplot demo
Histograms
Path demo
mplot3d
Ellipses
Bar charts
Pie charts
Table demo
Scatter demo
Slider demo
Fill demo
Date demo
Financial charts
Basemap demo
Log plots
Polar plots
Legends
Mathtext_examples
Native TeX rendering
EEG demo
What's new in matplotlib
new in matplotlib-1.2
new in matplotlib-1.1
new in matplotlib-1.0
new in matplotlib-0.99
new in 0.98.4
Github stats
License
License agreement for matplotlib 1.2.0
Credits
II The Matplotlib FAQ
Installation
Report a compilation problem
matplotlib compiled fine, but nothing shows up when I use it
How to completely remove matplotlib
How to Install
Linux Notes
OS-X Notes
Windows Notes
Usage
General Concepts
Matplotlib, pylab, and pyplot: how are they related?
Coding Styles
What is a backend?
What is interactive mode?
How-To
Plotting: howto
Contributing: howto
Matplotlib in a web application server
Search examples
Cite Matplotlib
Troubleshooting
Obtaining matplotlib version
matplotlib install location
.matplotlib directory location
Getting help
Problems with recent git versions
Environment Variables
Setting environment variables in Linux and OS-X
Setting environment variables in windows
III The Matplotlib Developers' Guide
Coding guide
Committing changes
Style guide
Documentation and docstrings
Developing a new backend
Writing examples
Writing a new pyplot function
Testing
Licenses
Working with matplotlib source code
Introduction
Install git
Following the latest source
Making a patch
Git for development
git resources
Documenting matplotlib
Getting started
Organization of matplotlib's documentation
Formatting
Figures
Referring to mpl documents
Internal section references
Section names, etc
Inheritance diagrams
Emacs helpers
Doing a matplolib release
Testing
Branching
Packaging
Release candidate testing
Announcing
Working with transformations
matplotlib.transforms
Adding new scales and projections to matplotlib
Creating a new scale
Creating a new projection
API documentation
Docs outline
Reviewer notes
IV Matplotlib AxesGrid Toolkit
Overview of AxesGrid toolkit
What is AxesGrid toolkit?
AXES_GRID1
AXISARTIST
The Matplotlib AxesGrid Toolkit User's Guide
AxesDivider
AXISARTIST namespace
The Matplotlib AxesGrid Toolkit API
mpl_toolkits.axes_grid.axes_size
mpl_toolkits.axes_grid.axes_divider
mpl_toolkits.axes_grid.axes_grid
mpl_toolkits.axes_grid.axis_artist
V mplot3d
Matplotlib mplot3d toolkit
mplot3d tutorial
mplot3d API
mplot3d FAQ
VI Toolkits
Basemap
GTK Tools
Excel Tools
Natgrid
mplot3d
AxesGrid
VII The Matplotlib API
Plotting commands summary
API Changes
Changes in 1.2.x
Changes in 1.1.x
Changes beyond 0.99.x
Changes in 0.99
Changes for 0.98.x
Changes for 0.98.1
Changes for 0.98.0
Changes for 0.91.2
Changes for 0.91.1
Changes for 0.91.0
Changes for 0.90.1
Changes for 0.90.0
Changes for 0.87.7
Changes for 0.86
Changes for 0.85
Changes for 0.84
Changes for 0.83
Changes for 0.82
Changes for 0.81
Changes for 0.80
Changes for 0.73
Changes for 0.72
Changes for 0.71
Changes for 0.70
Changes for 0.65.1
Changes for 0.65
Changes for 0.63
Changes for 0.61
Changes for 0.60
Changes for 0.54.3
Changes for 0.54
Changes for 0.50
Changes for 0.42
Changes for 0.40
configuration
matplotlib
afm (Adobe Font Metrics interface)
matplotlib.afm
animation
matplotlib.animation
artists
matplotlib.artist
matplotlib.lines
matplotlib.patches
matplotlib.text
axes
matplotlib.axes
axis
matplotlib.axis
backends
matplotlib.backend_bases
matplotlib.backends.backend_gtkagg
matplotlib.backends.backend_qt4agg
matplotlib.backends.backend_wxagg
matplotlib.backends.backend_pdf
matplotlib.dviread
matplotlib.type1font
cbook
matplotlib.cbook
cm (colormap)
matplotlib.cm
collections
matplotlib.collections
colorbar
matplotlib.colorbar
colors
matplotlib.colors
dates
matplotlib.dates
figure
matplotlib.figure
font_manager
matplotlib.font_manager
matplotlib.fontconfig_pattern
gridspec
matplotlib.gridspec
legend
matplotlib.legend
mathtext
matplotlib.mathtext
mlab
matplotlib.mlab
nxutils
matplotlib.nxutils
path
matplotlib.path
pyplot
matplotlib.pyplot
sankey
matplotlib.sankey
spines
matplotlib.spines
ticker
matplotlib.ticker
tight_layout
matplotlib.tight_layout
units
matplotlib.units
widgets
matplotlib.widgets
VIII Glossary
Python Module Index
Index
Matplotlib Release 1.2.0 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the matplotlib development team November 09, 2012
CONTENTS I User’s Guide 1 2 Introduction Installing 2.1 Manually installing pre-built packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.3 2.4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installing from source . . Build requirements . Building on OSX . . . . . . . . . . . 1 3 5 5 6 7 8 3 Pyplot tutorial Controlling line properties . 3.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2 Working with multiple figures and axes . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3 Working with text 9 . 11 . 13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 . . . . . 4 Interactive navigation 4.1 Navigation Keyboard Shortcuts 19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 5 Customizing matplotlib 5.1 5.2 Dynamic rc settings The matplotlibrc file . . . . 23 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 . . 6 Using matplotlib in a python shell . . 33 . 33 . 34 Controlling interactive updating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.1 . 6.2 Other python interpreters . 6.3 Ipython to the rescue . . 7 Working with text . . . Text introduction . . . . Basic text commands . Text properties and layout 37 . 37 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 . 37 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.2 7.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 7.4 Writing mathematical expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 Typesetting With XeLaTeX/LuaLaTeX . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 7.5 7.6 Text rendering With LaTeX . . 57 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 7.7 Annotating text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . i
8 Image tutorial 8.1 8.2 8.3 67 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 Startup commands . Importing image data into Numpy arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 Plotting numpy arrays as images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 . . . . . . 9 Artist tutorial 9.1 9.2 Object containers . 9.3 . Figure container . 9.4 Axes container . . 9.5 Axis containers . 9.6 Tick containers . . Customizing your objects . . . . . . . . . . . . . . . 81 . 83 . 85 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 . 87 . 89 . 92 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Customizing Location of Subplot Using GridSpec 95 . 95 10.1 Basic Example of using subplot2grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 . 10.2 GridSpec and SubplotSpec . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 10.3 Adjust GridSpec layout . . 10.4 GridSpec using SubplotSpec . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 10.5 A Complex Nested GridSpec using SubplotSpec . . . . . . . . . . . . . . . . . . . . . . . 99 10.6 GridSpec with Varying Cell Sizes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 . . . . 11 Tight Layout guide 11.1 Simple Example . . . . 12 Legend guide . 12.1 What to be displayed . . 12.2 Multicolumn Legend . . 12.3 Legend location . . 12.4 Multiple Legend . . . 12.5 Legend of Complex Plots . . 13 Event handling and picking . . . 13.1 Event connections 13.2 Event attributes . . 13.3 Mouse enter and leave . . 13.4 Object picking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 . 103 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 . . 119 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 . . 121 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 . . 123 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 . . 127 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 . . 132 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Transformations Tutorial . 14.1 Data coordinates . . 14.2 Axes coordinates . . . 14.3 Blended transformations . 14.4 Using offset transforms to create a shadow effect 14.5 The transformation pipeline . 137 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 . . . . . . . . . . . . . . . . . . . . . . . 144 . 145 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Path Tutorial 15.1 Bézier example . . 15.2 Compound paths . . . . . . . . . . . 149 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 16 Annotating Axes ii 155
. . . 16.1 Annotating with Text with Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 16.2 Annotating with Arrow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 16.3 Placing Artist at the anchored location of the Axes . . . . . . . . . . . . . . . . . . . . . . 162 16.4 Using Complex Coordinate with Annotation . . . . . . . . . . . . . . . . . . . . . . . . . 164 16.5 Using ConnectorPatch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167 . . 16.6 Zoom effect between Axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168 16.7 Define Custom BoxStyle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168 . . 17 Our Favorite Recipes 17.1 Sharing axis limits and views 17.2 Easily creating subplots . 17.3 Fixing common date annoyances 17.4 Fill Between and Alpha . . 17.5 Transparent, fancy legends . 17.6 Placing text boxes . . . . . . 173 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 . . 18 Screenshots . . . . . . . . . . . . . . . . . . . . 18.1 Simple Plot . . . . . 18.2 Subplot demo . . . . 18.3 Histograms . . . . . . 18.4 Path demo . . . . . . . 18.5 mplot3d . . . . . . 18.6 Ellipses . . . . . 18.7 Bar charts . . . . . . . 18.8 Pie charts . . . . . 18.9 Table demo . . . . . 18.10 Scatter demo . . . . . 18.11 Slider demo . . . . . 18.12 Fill demo . . . . 18.13 Date demo . . . . . 18.14 Financial charts . . . 18.15 Basemap demo . . . . 18.16 Log plots . . . . 18.17 Polar plots . . 18.18 Legends . . . 18.19 Mathtext_examples . . 18.20 Native TeX rendering . 18.21 EEG demo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 What’s new in matplotlib . 19.1 new in matplotlib-1.2 . . 19.2 new in matplotlib-1.1 . 19.3 new in matplotlib-1.0 . . 19.4 new in matplotlib-0.99 . 19.5 new in 0.98.4 . . . . . . 20 Github stats 183 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 205 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241 iii
21 License 255 21.1 License agreement for matplotlib 1.2.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255 22 Credits II The Matplotlib FAQ 257 261 23 Installation 263 23.1 Report a compilation problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263 23.2 matplotlib compiled fine, but nothing shows up when I use it . . . . . . . . . . . . . . . . . 263 23.3 How to completely remove matplotlib . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264 . 23.4 How to Install . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266 . 23.5 Linux Notes . 23.6 OS-X Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266 23.7 Windows Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268 . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Usage . 269 24.1 General Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269 24.2 Matplotlib, pylab, and pyplot: how are they related? . . . . . . . . . . . . . . . . . . . . . 270 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270 . 24.3 Coding Styles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271 . 24.4 What is a backend? . . 24.5 What is interactive mode? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273 . . . . . . . . . . . . 25 How-To . . 277 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278 25.1 Plotting: howto . . 25.2 Contributing: howto . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288 25.3 Matplotlib in a web application server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290 25.4 Search examples . 25.5 Cite Matplotlib . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290 . . . . . . . . . . . . . . . . . . 26 Troubleshooting 293 26.1 Obtaining matplotlib version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293 26.2 matplotlib install location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293 26.3 .matplotlib directory location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293 26.4 Getting help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294 26.5 Problems with recent git versions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295 . . . . . . . 27 Environment Variables 297 27.1 Setting environment variables in Linux and OS-X . . . . . . . . . . . . . . . . . . . . . . . 297 27.2 Setting environment variables in windows . . . . . . . . . . . . . . . . . . . . . . . . . . . 298 III The Matplotlib Developers’ Guide 299 28 Coding guide 301 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301 28.1 Committing changes . 28.2 Style guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301 . 28.3 Documentation and docstrings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304 . . . . . . . . . . iv
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305 28.4 Developing a new backend . 28.5 Writing examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306 . 28.6 Writing a new pyplot function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306 28.7 Testing . 28.8 Licenses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Working with matplotlib source code . . . . . . . . . . . . . . 29.1 Introduction . . 29.2 Install git . . 29.3 Following the latest source . . 29.4 Making a patch . . 29.5 Git for development . . . 29.6 git resources . . . . . . . . . . . . . 311 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324 . . . . . 30 Documenting matplotlib . 327 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327 30.1 Getting started . 30.2 Organization of matplotlib’s documentation . . . . . . . . . . . . . . . . . . . . . . . . . . 327 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328 30.3 Formatting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330 30.4 Figures . . 30.5 Referring to mpl documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30.6 Internal section references . . 334 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334 . 30.7 Section names, etc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30.8 Inheritance diagrams . . 334 30.9 Emacs helpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335 . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Doing a matplolib release . . . . . . . . 31.1 Testing . . 31.2 Branching . 31.3 Packaging . . 31.4 Release candidate testing . 31.5 Announcing . . . . . . . . . . . . . . . . . . . 337 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338 . . . . . 32 Working with transformations 339 32.1 matplotlib.transforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339 33 Adding new scales and projections to matplotlib 33.1 Creating a new scale . . 33.2 Creating a new projection . 33.3 API documentation . . . . . . . 361 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 363 . . 34 Docs outline 34.1 Reviewer notes . . . . . . . 373 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376 IV Matplotlib AxesGrid Toolkit 35 Overview of AxesGrid toolkit 35.1 What is AxesGrid toolkit? . 35.2 AXES_GRID1 . . . . . . . 383 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385 379 v
35.3 AXISARTIST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 399 36 The Matplotlib AxesGrid Toolkit User’s Guide 405 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 405 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 408 36.1 AxesDivider . 36.2 AXISARTIST namespace . . . . . . . . . . . . 37 The Matplotlib AxesGrid Toolkit API 421 37.1 mpl_toolkits.axes_grid.axes_size . . . . . . . . . . . . . . . . . . . . . . . . . . . 421 37.2 mpl_toolkits.axes_grid.axes_divider . . . . . . . . . . . . . . . . . . . . . . . . . 422 37.3 mpl_toolkits.axes_grid.axes_grid . . . . . . . . . . . . . . . . . . . . . . . . . . . 425 37.4 mpl_toolkits.axes_grid.axis_artist . . . . . . . . . . . . . . . . . . . . . . . . . 426 V mplot3d 431 38 Matplotlib mplot3d toolkit . . . 38.1 mplot3d tutorial 38.2 mplot3d API . 38.3 mplot3d FAQ . . . . . . . . . . . . . . . . . . . . . . . . 433 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 434 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 452 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 475 VI Toolkits 39 Basemap 40 GTK Tools 41 Excel Tools 42 Natgrid 43 mplot3d 44 AxesGrid VII The Matplotlib API 45 Plotting commands summary 46 API Changes . . . . . 46.1 Changes in 1.2.x . 46.2 Changes in 1.1.x . . 46.3 Changes beyond 0.99.x . . 46.4 Changes in 0.99 . . . 46.5 Changes for 0.98.x . . 46.6 Changes for 0.98.1 . 46.7 Changes for 0.98.0 . . . 46.8 Changes for 0.91.2 . 46.9 Changes for 0.91.1 . . . . . . . . 477 481 483 485 487 489 491 493 495 503 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 503 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 505 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 506 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 507 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 508 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 509 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 509 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 514 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 514 . . . . . . . . . . . . . . . . . . vi
分享到:
收藏