Revision: 6309
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6309&view=rev
Author: jdh2358
Date: 2008-10-23 16:10:59 +0000 (Thu, 23 Oct 2008)
Log Message:
-----------
fixed pyplot tutorial error
Modified Paths:
--------------
trunk/matplotlib/doc/_templates/gallery.html
trunk/matplotlib/doc/devel/documenting_mpl.rst
trunk/matplotlib/doc/faq/howto_faq.rst
trunk/matplotlib/doc/users/pyplot_tutorial.rst
Modified: trunk/matplotlib/doc/_templates/gallery.html
===================================================================
--- trunk/matplotlib/doc/_templates/gallery.html 2008-10-23 15:46:27 UTC
(rev 6308)
+++ trunk/matplotlib/doc/_templates/gallery.html 2008-10-23 16:10:59 UTC
(rev 6309)
@@ -5,7 +5,7 @@
{% block body %}
<h3>Click on any image to see full size image and source code</h3>
-<br>
+<br/>
<a href="examples/api/barchart_demo.html"><img
src="_static/plot_directive/mpl_examples/api/thumbnails/barchart_demo.png"
border="0" alt="barchart_demo"/></a>
Modified: trunk/matplotlib/doc/devel/documenting_mpl.rst
===================================================================
--- trunk/matplotlib/doc/devel/documenting_mpl.rst 2008-10-23 15:46:27 UTC
(rev 6308)
+++ trunk/matplotlib/doc/devel/documenting_mpl.rst 2008-10-23 16:10:59 UTC
(rev 6309)
@@ -8,9 +8,8 @@
===============
The documentation for matplotlib is generated from ReStructured Text
-using the Sphinx_ documentation generation tool. Sphinx-0.4 or later
-is required. Currently this means we need to install from the svn
-repository by doing::
+using the Sphinx_ documentation generation tool. Sphinx-0.5 or later
+is required. Most developers work from the sphinx subversion repository
because it is a rapidly evolving project::
svn co http://svn.python.org/projects/doctools/trunk sphinx
cd sphinx
Modified: trunk/matplotlib/doc/faq/howto_faq.rst
===================================================================
--- trunk/matplotlib/doc/faq/howto_faq.rst 2008-10-23 15:46:27 UTC (rev
6308)
+++ trunk/matplotlib/doc/faq/howto_faq.rst 2008-10-23 16:10:59 UTC (rev
6309)
@@ -332,14 +332,13 @@
which is part of the `mplayer <http://www.mplayerhq.hu>`_ suite
for this::
-
#fps (frames per second) controls the play speed
mencoder 'mf://*.png' -mf type=png:fps=10 -ovc \\
lavc -lavcopts vcodec=wmv2 -oac copy -o animation.avi
The swiss army knife of image tools, ImageMagick's `convert
<http://www.imagemagick.org/script/convert.php>`_ works for this as
-well.<p>
+well.
Here is a simple example script that saves some PNGs, makes them into
a movie, and then cleans up::
@@ -617,7 +616,15 @@
import sys
fig.savefig(sys.stdout)
+Here is an example using the Python Imaging Library PIL. First the figure is
saved to a StringIO objectm which is then fed to PIL for further processing::
+ import StringIO, Image
+ imgdata = StringIO.StringIO()
+ fig.savefig(imgdata, format='png')
+ imgdata.seek(0) # rewind the data
+ im = Image.open(imgdata)
+
+
matplotlib with apache
------------------------------------
Modified: trunk/matplotlib/doc/users/pyplot_tutorial.rst
===================================================================
--- trunk/matplotlib/doc/users/pyplot_tutorial.rst 2008-10-23 15:46:27 UTC
(rev 6308)
+++ trunk/matplotlib/doc/users/pyplot_tutorial.rst 2008-10-23 16:10:59 UTC
(rev 6309)
@@ -15,13 +15,13 @@
.. plot:: pyplots/pyplot_simple.py
:include-source:
-You may be wondering why the x-axis ranges from 0-3 and the y-axis
-from 1-4. If you provide a single list or array to the
+You may be wondering why the x-axis ranges from 0-2 and the y-axis
+from 1-3. If you provide a single list or array to the
:func:`~matplotlib.pyplot.plot` command, matplotlib assumes it a
sequence of y values, and automatically generates the x values for
you. Since python ranges start with 0, the default x vector has the
same length as y but starts with 0. Hence the x data are
-``[0,1,2,3]``.
+``[0,1,2]``.
:func:`~matplotlib.pyplot.plot` is a versatile command, and will take
an arbitrary number of arguments. For example, to plot x versus y,
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins