forked from matplotlib/matplotlib.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplotting.html
More file actions
246 lines (232 loc) · 17.9 KB
/
plotting.html
File metadata and controls
246 lines (232 loc) · 17.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Plotting guide — Matplotlib v1.1.0 documentation</title>
<link rel="stylesheet" href="../_static/mpl.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '1.1.0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<link rel="search" type="application/opensearchdescription+xml"
title="Search within Matplotlib v1.1.0 documentation"
href="../_static/opensearch.xml"/>
<link rel="top" title="Matplotlib v1.1.0 documentation" href="../index.html" />
</head>
<body>
<!-- Piwik -->
<script type="text/javascript">
if ("matplotlib.sourceforge.net" == document.location.hostname ||
"matplotlib.sf.net" == document.location.hostname) {
var pkBaseURL = (("https:" == document.location.protocol) ? "https://apps.sourceforge.net/piwik/matplotlib/" : "http://apps.sourceforge.net/piwik/matplotlib/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
}
</script>
<script type="text/javascript">
if ("matplotlib.sourceforge.net" == document.location.hostname ||
"matplotlib.sf.net" == document.location.hostname) {
piwik_action_name = '';
piwik_idsite = 1;
piwik_url = pkBaseURL + "piwik.php";
piwik_log(piwik_action_name, piwik_idsite, piwik_url);
document.write(unescape('%3Cobject%3E%3Cnoscript%3E%3Cp%3E%3Cimg src="http://apps.sourceforge.net/piwik/matplotlib/piwik.php?idsite=1" alt="piwik"/%3E%3C/p%3E%3C/noscript%3E%3C/object%3E'));
}
</script>
<!-- End Piwik Tag -->
<link rel="shortcut icon" href="_static/favicon.ico">
<div style="background-color: white; text-align: left; padding: 10px 10px 15px 15px">
<a href="../index.html"><img src="../_static/logo2.png" border="0" alt="matplotlib"/></a>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="../index.html">home</a>| </li>
<li><a href="../search.html">search</a>| </li>
<li><a href="../examples/index.html">examples</a>| </li>
<li><a href="../gallery.html">gallery</a>| </li>
<li><a href="../contents.html">docs</a> »</li>
</ul>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<h3><a href="../contents.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">Plotting guide</a><ul>
<li><a class="reference internal" href="#images">Images</a></li>
<li><a class="reference internal" href="#colormaps">Colormaps</a></li>
<li><a class="reference internal" href="#colorbars">Colorbars</a></li>
<li><a class="reference internal" href="#contouring">Contouring</a></li>
<li><a class="reference internal" href="#scatter-plots">Scatter plots</a></li>
<li><a class="reference internal" href="#log-plots">Log plots</a></li>
<li><a class="reference internal" href="#polar-plots">Polar plots</a></li>
<li><a class="reference internal" href="#filled-plots">Filled plots</a></li>
<li><a class="reference internal" href="#bar-charts-histograms-and-errorbars">Bar charts, histograms and errorbars</a></li>
<li><a class="reference internal" href="#timeseries-plots">Timeseries plots</a></li>
<li><a class="reference internal" href="#sparsity-plots">Sparsity plots</a></li>
<li><a class="reference internal" href="#boxplots">Boxplots</a></li>
<li><a class="reference internal" href="#working-with-dates">Working with dates</a></li>
<li><a class="reference internal" href="#working-with-masked-missing-data">Working with masked/missing data</a></li>
<li><a class="reference internal" href="#working-with-collections">Working with collections</a></li>
<li><a class="reference internal" href="#creating-figure-and-axes-legends">Creating figure and axes legends</a></li>
<li><a class="reference internal" href="#annotating-plot">Annotating plot</a></li>
</ul>
</li>
</ul>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../_sources/users/plotting.txt"
rel="nofollow">Show Source</a></li>
</ul>
<div id="searchbox" style="display: none">
<h3>Quick search</h3>
<form class="search" action="../search.html" method="get">
<input type="text" name="q" size="18" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="plotting-guide">
<span id="id1"></span><h1>Plotting guide<a class="headerlink" href="#plotting-guide" title="Permalink to this headline">¶</a></h1>
<p>An in-depth, tutorial style guide to the matplotlib plotting
functions, which explains the most important keyword arguments with
examples and figures.</p>
<div class="section" id="images">
<span id="image-plots"></span><h2>Images<a class="headerlink" href="#images" title="Permalink to this headline">¶</a></h2>
<p><a class="reference internal" href="../api/pyplot_api.html#matplotlib.pyplot.imshow" title="matplotlib.pyplot.imshow"><tt class="xref py py-func docutils literal"><span class="pre">imshow()</span></tt></a></p>
<p>TODO; see <a class="reference internal" href="../faq/howto_faq.html#how-to-contribute-docs"><em>Contribute to matplotlib documentation</em></a>.</p>
</div>
<div class="section" id="colormaps">
<span id="colormaps-plots"></span><h2>Colormaps<a class="headerlink" href="#colormaps" title="Permalink to this headline">¶</a></h2>
<p>TODO; see <a class="reference internal" href="../faq/howto_faq.html#how-to-contribute-docs"><em>Contribute to matplotlib documentation</em></a>.</p>
</div>
<div class="section" id="colorbars">
<span id="colorbars-plots"></span><h2>Colorbars<a class="headerlink" href="#colorbars" title="Permalink to this headline">¶</a></h2>
<p><a class="reference internal" href="../api/pyplot_api.html#matplotlib.pyplot.colorbar" title="matplotlib.pyplot.colorbar"><tt class="xref py py-func docutils literal"><span class="pre">colorbar()</span></tt></a></p>
<p>TODO; see <a class="reference internal" href="../faq/howto_faq.html#how-to-contribute-docs"><em>Contribute to matplotlib documentation</em></a>.</p>
</div>
<div class="section" id="contouring">
<span id="contour-plots"></span><h2>Contouring<a class="headerlink" href="#contouring" title="Permalink to this headline">¶</a></h2>
<p><a class="reference internal" href="../api/pyplot_api.html#matplotlib.pyplot.contour" title="matplotlib.pyplot.contour"><tt class="xref py py-func docutils literal"><span class="pre">contour()</span></tt></a></p>
<p>TODO; see <a class="reference internal" href="../faq/howto_faq.html#how-to-contribute-docs"><em>Contribute to matplotlib documentation</em></a>.</p>
</div>
<div class="section" id="scatter-plots">
<span id="id2"></span><h2>Scatter plots<a class="headerlink" href="#scatter-plots" title="Permalink to this headline">¶</a></h2>
<p><a class="reference internal" href="../api/pyplot_api.html#matplotlib.pyplot.scatter" title="matplotlib.pyplot.scatter"><tt class="xref py py-func docutils literal"><span class="pre">scatter()</span></tt></a></p>
<p>TODO; see <a class="reference internal" href="../faq/howto_faq.html#how-to-contribute-docs"><em>Contribute to matplotlib documentation</em></a>.</p>
</div>
<div class="section" id="log-plots">
<span id="id3"></span><h2>Log plots<a class="headerlink" href="#log-plots" title="Permalink to this headline">¶</a></h2>
<p><a class="reference internal" href="../api/pyplot_api.html#matplotlib.pyplot.semilogx" title="matplotlib.pyplot.semilogx"><tt class="xref py py-func docutils literal"><span class="pre">semilogx()</span></tt></a>, <a class="reference internal" href="../api/pyplot_api.html#matplotlib.pyplot.semilogy" title="matplotlib.pyplot.semilogy"><tt class="xref py py-func docutils literal"><span class="pre">semilogy()</span></tt></a> and <a class="reference internal" href="../api/pyplot_api.html#matplotlib.pyplot.loglog" title="matplotlib.pyplot.loglog"><tt class="xref py py-func docutils literal"><span class="pre">loglog()</span></tt></a></p>
</div>
<div class="section" id="polar-plots">
<span id="id4"></span><h2>Polar plots<a class="headerlink" href="#polar-plots" title="Permalink to this headline">¶</a></h2>
<p><a class="reference internal" href="../api/pyplot_api.html#matplotlib.pyplot.polar" title="matplotlib.pyplot.polar"><tt class="xref py py-func docutils literal"><span class="pre">polar()</span></tt></a></p>
<p>TODO; see <a class="reference internal" href="../faq/howto_faq.html#how-to-contribute-docs"><em>Contribute to matplotlib documentation</em></a>.</p>
</div>
<div class="section" id="filled-plots">
<span id="id5"></span><h2>Filled plots<a class="headerlink" href="#filled-plots" title="Permalink to this headline">¶</a></h2>
<p><a class="reference internal" href="../api/pyplot_api.html#matplotlib.pyplot.fill" title="matplotlib.pyplot.fill"><tt class="xref py py-func docutils literal"><span class="pre">fill()</span></tt></a> and <a class="reference internal" href="../api/artist_api.html#module-matplotlib.patches" title="matplotlib.patches"><tt class="xref py py-mod docutils literal"><span class="pre">patches</span></tt></a></p>
<p>TODO; see <a class="reference internal" href="../faq/howto_faq.html#how-to-contribute-docs"><em>Contribute to matplotlib documentation</em></a>.</p>
</div>
<div class="section" id="bar-charts-histograms-and-errorbars">
<span id="bar-plots"></span><h2>Bar charts, histograms and errorbars<a class="headerlink" href="#bar-charts-histograms-and-errorbars" title="Permalink to this headline">¶</a></h2>
<p><a class="reference internal" href="../api/pyplot_api.html#matplotlib.pyplot.bar" title="matplotlib.pyplot.bar"><tt class="xref py py-func docutils literal"><span class="pre">bar()</span></tt></a>, <a class="reference internal" href="../api/pyplot_api.html#matplotlib.pyplot.barh" title="matplotlib.pyplot.barh"><tt class="xref py py-func docutils literal"><span class="pre">barh()</span></tt></a>,
<a class="reference internal" href="../api/pyplot_api.html#matplotlib.pyplot.errorbar" title="matplotlib.pyplot.errorbar"><tt class="xref py py-func docutils literal"><span class="pre">errorbar()</span></tt></a> and
<a class="reference internal" href="../api/pyplot_api.html#matplotlib.pyplot.hist" title="matplotlib.pyplot.hist"><tt class="xref py py-func docutils literal"><span class="pre">hist()</span></tt></a></p>
<p>TODO; see <a class="reference internal" href="../faq/howto_faq.html#how-to-contribute-docs"><em>Contribute to matplotlib documentation</em></a>.</p>
</div>
<div class="section" id="timeseries-plots">
<span id="time-series-plots"></span><h2>Timeseries plots<a class="headerlink" href="#timeseries-plots" title="Permalink to this headline">¶</a></h2>
<p><a class="reference internal" href="../api/pyplot_api.html#matplotlib.pyplot.acorr" title="matplotlib.pyplot.acorr"><tt class="xref py py-func docutils literal"><span class="pre">acorr()</span></tt></a>, <a class="reference internal" href="../api/pyplot_api.html#matplotlib.pyplot.xcorr" title="matplotlib.pyplot.xcorr"><tt class="xref py py-func docutils literal"><span class="pre">xcorr()</span></tt></a>, <a class="reference internal" href="../api/pyplot_api.html#matplotlib.pyplot.psd" title="matplotlib.pyplot.psd"><tt class="xref py py-func docutils literal"><span class="pre">psd()</span></tt></a>, <a class="reference internal" href="../api/pyplot_api.html#matplotlib.pyplot.csd" title="matplotlib.pyplot.csd"><tt class="xref py py-func docutils literal"><span class="pre">csd()</span></tt></a>,
<a class="reference internal" href="../api/pyplot_api.html#matplotlib.pyplot.cohere" title="matplotlib.pyplot.cohere"><tt class="xref py py-func docutils literal"><span class="pre">cohere()</span></tt></a>, <a class="reference internal" href="../api/pyplot_api.html#matplotlib.pyplot.specgram" title="matplotlib.pyplot.specgram"><tt class="xref py py-func docutils literal"><span class="pre">specgram()</span></tt></a>
and the windowing and detrending functions in <a class="reference internal" href="../api/mlab_api.html#module-matplotlib.mlab" title="matplotlib.mlab"><tt class="xref py py-mod docutils literal"><span class="pre">matplotlib.mlab</span></tt></a>.</p>
<p>TODO; see <a class="reference internal" href="../faq/howto_faq.html#how-to-contribute-docs"><em>Contribute to matplotlib documentation</em></a>.</p>
</div>
<div class="section" id="sparsity-plots">
<span id="id6"></span><h2>Sparsity plots<a class="headerlink" href="#sparsity-plots" title="Permalink to this headline">¶</a></h2>
<p><a class="reference internal" href="../api/pyplot_api.html#matplotlib.pyplot.spy" title="matplotlib.pyplot.spy"><tt class="xref py py-func docutils literal"><span class="pre">spy()</span></tt></a></p>
<p>TODO; see <a class="reference internal" href="../faq/howto_faq.html#how-to-contribute-docs"><em>Contribute to matplotlib documentation</em></a>.</p>
</div>
<div class="section" id="boxplots">
<span id="boxplots-plots"></span><h2>Boxplots<a class="headerlink" href="#boxplots" title="Permalink to this headline">¶</a></h2>
<p><a class="reference internal" href="../api/pyplot_api.html#matplotlib.pyplot.boxplot" title="matplotlib.pyplot.boxplot"><tt class="xref py py-func docutils literal"><span class="pre">boxplot()</span></tt></a></p>
<p>TODO; see <a class="reference internal" href="../faq/howto_faq.html#how-to-contribute-docs"><em>Contribute to matplotlib documentation</em></a>.</p>
</div>
<div class="section" id="working-with-dates">
<span id="date-plots"></span><h2>Working with dates<a class="headerlink" href="#working-with-dates" title="Permalink to this headline">¶</a></h2>
<p>TODO; see <a class="reference internal" href="../faq/howto_faq.html#how-to-contribute-docs"><em>Contribute to matplotlib documentation</em></a>.</p>
</div>
<div class="section" id="working-with-masked-missing-data">
<span id="masked-data-plots"></span><h2>Working with masked/missing data<a class="headerlink" href="#working-with-masked-missing-data" title="Permalink to this headline">¶</a></h2>
<p>TODO; see <a class="reference internal" href="../faq/howto_faq.html#how-to-contribute-docs"><em>Contribute to matplotlib documentation</em></a>.</p>
</div>
<div class="section" id="working-with-collections">
<span id="collections-plots"></span><h2>Working with collections<a class="headerlink" href="#working-with-collections" title="Permalink to this headline">¶</a></h2>
<p>TODO; see <a class="reference internal" href="../faq/howto_faq.html#how-to-contribute-docs"><em>Contribute to matplotlib documentation</em></a>.</p>
</div>
<div class="section" id="creating-figure-and-axes-legends">
<span id="legend-plots"></span><h2>Creating figure and axes legends<a class="headerlink" href="#creating-figure-and-axes-legends" title="Permalink to this headline">¶</a></h2>
<p><a class="reference internal" href="../api/pyplot_api.html#matplotlib.pyplot.legend" title="matplotlib.pyplot.legend"><tt class="xref py py-func docutils literal"><span class="pre">legend()</span></tt></a> and <a class="reference internal" href="../api/pyplot_api.html#matplotlib.pyplot.figlegend" title="matplotlib.pyplot.figlegend"><tt class="xref py py-func docutils literal"><span class="pre">figlegend()</span></tt></a></p>
<p><a class="reference internal" href="legend_guide.html#plotting-guide-legend"><em>Legend guide</em></a></p>
</div>
<div class="section" id="annotating-plot">
<h2>Annotating plot<a class="headerlink" href="#annotating-plot" title="Permalink to this headline">¶</a></h2>
<p><a class="reference internal" href="../api/pyplot_api.html#matplotlib.pyplot.text" title="matplotlib.pyplot.text"><tt class="xref py py-func docutils literal"><span class="pre">text()</span></tt></a> and <a class="reference internal" href="../api/pyplot_api.html#matplotlib.pyplot.annotate" title="matplotlib.pyplot.annotate"><tt class="xref py py-func docutils literal"><span class="pre">annotate()</span></tt></a></p>
<p><a class="reference internal" href="annotations_guide.html#plotting-guide-annotation"><em>Annotating Axes</em></a></p>
</div>
</div>
</div>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="../index.html">home</a>| </li>
<li><a href="../search.html">search</a>| </li>
<li><a href="../examples/index.html">examples</a>| </li>
<li><a href="../gallery.html">gallery</a>| </li>
<li><a href="../contents.html">docs</a> »</li>
</ul>
</div>
<div class="footer">
© Copyright 2008, John Hunter, Darren Dale, Michael Droettboom.
Last updated on Feb 23, 2011.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7.
</div>
</body>
</html>