forked from matplotlib/matplotlib
-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
171 lines (136 loc) · 6.19 KB
/
index.html
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
{% extends "layout.html" %}
{% set title = 'matplotlib: python plotting' %}
{% block body %}
<script>
function getSnippet(id, url) {
var req = false;
// For Safari, Firefox, and other non-MS browsers
if (window.XMLHttpRequest) {
try {
req = new XMLHttpRequest();
} catch (e) {
req = false;
}
} else if (window.ActiveXObject) {
// For Internet Explorer on Windows
try {
req = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
req = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {
req = false;
}
}
}
var element = document.getElementById(id);
if (req) {
// Synchronous request, wait till we have it all
req.open('GET', url, false);
req.send(null);
element.innerHTML = req.responseText;
}
}
</script>
<!-- The "Fork me on github" ribbon -->
<a href="https://github.com/matplotlib/matplotlib"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png" alt="Fork me on GitHub"></a>
<h1>Introduction</h1>
<p>matplotlib is a python 2D plotting library which produces
publication quality figures in a variety of hardcopy formats and
interactive environments across platforms. matplotlib can be used
in python scripts, the python and <a
href="http://ipython.org">ipython</a> shell (ala
MATLAB<sup>®<a name="matlab" href="#ftn.matlab">*</a></sup>
or
Mathematica<sup>®<a name="mathematica"
href="#ftn.mathematica">†</a></sup>),
web application servers, and six graphical user
interface toolkits.</p>
<p align="center"><a href="{{ pathto('users/screenshots') }}"><img align="middle"
src="{{ pathto('_static/logo_sidebar_horiz.png', 1) }}" border="0"
alt="screenshots"/></a></p>
<p>matplotlib tries to make easy things easy and hard things possible.
You can generate plots, histograms, power spectra, bar charts,
errorcharts, scatterplots, etc, with just a few lines of code.
For a sampling, see the <a href="{{ pathto('users/screenshots') }}">screenshots</a>, <a href="{{ pathto('gallery') }}">thumbnail</a> gallery, and
<a href="examples/index.html">examples</a> directory</p>
<p>For example, using "ipython -pylab" to provide an interactive
environment, to generate 10,000 gaussian random numbers and plot a
histogram with 100 bins, you simply need to
type</p>
<pre>
x = randn(10000)
hist(x, 100)</pre>
<p>For the power user, you have full control of line styles, font
properties, axes properties, etc, via an object oriented interface
or via a set of functions familiar to MATLAB users.</p>
<h1>Download</h1>
Matplotlib 1.1.1 is available for
<a href="https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.1/">download</a>.
<h1>Documentation</h1>
This is the documentation for matplotlib version {{ version }}.
<p id="other_versions"></p>
<script>
getSnippet('other_versions', '/versions.html');
</script>
<p>Trying to learn how to do a particular kind of plot? Check out
the <a href="gallery.html">gallery</a>, <a href="examples/index.html">examples</a>,
or the <a href="api/pyplot_api.html">list of plotting
commands</a>.</p>
<h4>Other learning resources</h4>
<ul>
<li>Sandro Tosi has a new book
<a href="http://www.packtpub.com/matplotlib-python-development/book?utm_source=matplotlib.sourceforge.net&utm_medium=link&utm_content=pod&utm_campaign=mdb_002124">Matplotlib
for python developers</a> also
at <a href="http://www.amazon.com/Matplotlib-Python-Developers-Sandro-Tosi/dp/1847197906">amazon</a>.</li>
<li>Nicolas Rougier has
a <a href="http://www.loria.fr/~rougier/teaching/matplotlib/">beginner
tutorial.</a></li>
<li>Eric Jones gave
an <a href="http://www.youtube.com/watch?v=3Fp1zn5ao2M&feature=plcp">introductory
tutorial on Numpy and matplotlib</a> at SciPy 2012.</li>
</ul>
<h4>Need help?</h4>
<p>Check the <a href="{{ pathto('faq/index') }}">faq</a>,
the <a href="{{ pathto('api/index') }}">api</a> docs,
<a href="http://sourceforge.net/mailarchive/forum.php?forum_name=matplotlib-users">mailing
list archives</a>, and join the matplotlib
mailing <a href="http://sourceforge.net/mail/?group_id=80706">lists</a>.
The <a href="{{ pathto('search') }}">search</a> tool searches all of
the documentation, including full text search of over 350 complete
examples which exercise almost every corner of matplotlib.</p>
<p>You can file bugs, patches and feature requests on the
github
<a href="https://github.com/matplotlib/matplotlib/issues?sort=created&direction=desc&state=open">tracker</a>,
but it is a good idea to ping us on the mailing list too.</p>
<p>For details on what's new, see the detailed <a href="{{
pathto('_static/CHANGELOG', 1) }}">changelog</a> or browse the <a href="https://github.com/matplotlib/matplotlib">source code</a>. Anything that could
require changes to your existing codes is logged in the <a href="{{
pathto('api/api_changes.html', 1) }}">api changes</a> file.</p>
<h1>Toolkits</h1>
<p>There are several matplotlib add-on <a href="{{
pathto('mpl_toolkits/index') }}">toolkits</a>, including the projection
and mapping toolkit
<a href="http://matplotlib.github.com/basemap">basemap</a>, 3d plotting with <a href="{{
pathto('mpl_toolkits/mplot3d/index') }}">mplot3d</a>, axes and axis helpers in <a href="{{
pathto('mpl_toolkits/axes_grid/index') }}">axes_grid</a> and more.
</p>
<h1>Open source</h1>
<p>Please
consider <a href="http://sourceforge.net/project/project_donations.php?group_id=80706">donating</a>
to support matplotlib development.</p>
<p>The matplotlib <a href="{{ pathto('users/license') }}">license</a>
is based on the Python Software Foundation
<a href="http://www.python.org/psf/license">(PSF)</a> license.</p>
<p>There is an active developer community and a long list of people
who have made significant <a href="{{ pathto('users/credits')
}}">contributions</a>.</p>
<div class="footnote"><p>
<sup><a name="ftn.matlab" href="#matlab">*</a></sup>
MATLAB is a registered trademark of The MathWorks, Inc.
</p>
<p>
<sup><a name="ftn.mathematica" href="#mathematica">†</a></sup>
Mathematica is a registered trademark of Wolfram Research, Inc.
</p>
{% endblock %}