Revision: 6120 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6120&view=rev Author: mmetz_bn Date: 2008年09月24日 09:21:41 +0000 (2008年9月24日) Log Message: ----------- minor typo Modified Paths: -------------- trunk/matplotlib/doc/users/pyplot_tutorial.rst Modified: trunk/matplotlib/doc/users/pyplot_tutorial.rst =================================================================== --- trunk/matplotlib/doc/users/pyplot_tutorial.rst 2008年09月24日 08:58:16 UTC (rev 6119) +++ trunk/matplotlib/doc/users/pyplot_tutorial.rst 2008年09月24日 09:21:41 UTC (rev 6120) @@ -71,7 +71,7 @@ * Use the setter methods of the ``Line2D`` instance. ``plot`` returns a list of lines; eg ``line1, line2 = plot(x1,y1,x2,x2)``. Below I have only - one line so it is a list of7 length 1. I use tuple unpacking in the + one line so it is a list of length 1. I use tuple unpacking in the ``line, = plot(x, y, 'o')`` to get the first element of the list:: line, = plt.plot(x, y, 'o') @@ -134,9 +134,9 @@ .. sourcecode:: ipython - In [69]: lines = plot([1,2,3]) + In [69]: lines = plt.plot([1,2,3]) - In [70]: setp(lines) + In [70]: plt.setp(lines) alpha: float animated: [True | False] antialiased or aa: [True | False] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 6460 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6460&view=rev Author: mmetz_bn Date: 2008年12月01日 14:06:49 +0000 (2008年12月01日) Log Message: ----------- typo, close bug #2358133 Modified Paths: -------------- trunk/matplotlib/doc/users/pyplot_tutorial.rst Modified: trunk/matplotlib/doc/users/pyplot_tutorial.rst =================================================================== --- trunk/matplotlib/doc/users/pyplot_tutorial.rst 2008年12月01日 10:10:39 UTC (rev 6459) +++ trunk/matplotlib/doc/users/pyplot_tutorial.rst 2008年12月01日 14:06:49 UTC (rev 6460) @@ -17,7 +17,7 @@ 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 +:func:`~matplotlib.pyplot.plot` command, matplotlib assumes it is 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 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 7191 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7191&view=rev Author: jdh2358 Date: 2009年06月07日 13:46:10 +0000 (2009年6月07日) Log Message: ----------- fixed a doc tutorial url Modified Paths: -------------- trunk/matplotlib/doc/users/pyplot_tutorial.rst Modified: trunk/matplotlib/doc/users/pyplot_tutorial.rst =================================================================== --- trunk/matplotlib/doc/users/pyplot_tutorial.rst 2009年06月07日 13:08:34 UTC (rev 7190) +++ trunk/matplotlib/doc/users/pyplot_tutorial.rst 2009年06月07日 13:46:10 UTC (rev 7191) @@ -271,4 +271,4 @@ variety of other coordinate systems one can choose -- see :ref:`annotations-tutorial` for details. More examples can be found in the `annotations demo -<http://matplotlib.sf.net/examples/pylab_examples/annotation_demo.py>`_ +<http://matplotlib.sf.net/examples/pylab_examples/annotation_demo.html>`_ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 8343 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8343&view=rev Author: efiring Date: 2010年05月30日 18:35:42 +0000 (2010年5月30日) Log Message: ----------- pyplot_tutorial: add note about pyplot.close, add TM to first Matlab ref Modified Paths: -------------- trunk/matplotlib/doc/users/pyplot_tutorial.rst Modified: trunk/matplotlib/doc/users/pyplot_tutorial.rst =================================================================== --- trunk/matplotlib/doc/users/pyplot_tutorial.rst 2010年05月28日 18:53:48 UTC (rev 8342) +++ trunk/matplotlib/doc/users/pyplot_tutorial.rst 2010年05月30日 18:35:42 UTC (rev 8343) @@ -5,7 +5,8 @@ *************** :mod:`matplotlib.pyplot` is a collection of command style functions -that make matplotlib work like matlab. Each ``pyplot`` function makes +that make matplotlib work like `MatlabTM <http://www.mathworks.com>`_. +Each ``pyplot`` function makes some change to a figure: eg, create a figure, create a plotting area in a figure, plot some lines in a plotting area, decorate the plot with labels, etc.... :mod:`matplotlib.pyplot` is stateful, in that it @@ -29,10 +30,10 @@ plt.plot([1,2,3,4], [1,4,9,16]) -For every x, y pair of arguments, there is a optional third argument +For every x, y pair of arguments, there is an optional third argument which is the format string that indicates the color and line type of the plot. The letters and symbols of the format string are from -matlab, and you concatenate a color string with a line style string. +Matlab, and you concatenate a color string with a line style string. The default format string is 'b-', which is a solid blue line. For example, to plot the above with red circles, you would issue @@ -86,7 +87,7 @@ lines = plt.plot(x1, y1, x2, y2) # use keyword args plt.setp(lines, color='r', linewidth=2.0) - # or matlab style string value pairs + # or Matlab style string value pairs plt.setp(lines, 'color', 'r', 'linewidth', 2.0) @@ -204,6 +205,15 @@ stateful wrapper around an object oriented API, which you can use instead (see :ref:`artist-tutorial`) +If you are making a long sequence of figures, you need to be aware of one +more thing: the memory required for a figure is not completely +released until the figure is explicitly closed with +:func:`~matplotlib.pyplot.close`. Deleting all references to the +figure, and/or using the window manager to kill the window in which +the figure appears on the screen, is not enough, because pyplot +maintains internal references until :func:`~matplotlib.pyplot.close` +is called. + .. _working-with-text: Working with text @@ -270,3 +280,4 @@ :ref:`annotations-tutorial` and :ref:`plotting-guide-annotation` for details. More examples can be found in :ref:`pylab_examples-annotation_demo`. + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 8428 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8428&view=rev Author: efiring Date: 2010年06月13日 23:04:30 +0000 (2010年6月13日) Log Message: ----------- [2922266] pyplot_tutorial.rst: remove tabs from code (patch by Ori Avtalion) Modified Paths: -------------- trunk/matplotlib/doc/users/pyplot_tutorial.rst Modified: trunk/matplotlib/doc/users/pyplot_tutorial.rst =================================================================== --- trunk/matplotlib/doc/users/pyplot_tutorial.rst 2010年06月13日 22:53:25 UTC (rev 8427) +++ trunk/matplotlib/doc/users/pyplot_tutorial.rst 2010年06月13日 23:04:30 UTC (rev 8428) @@ -75,7 +75,7 @@ one line so it is a list of length 1. I use tuple unpacking in the ``line, = plot(x, y, 'o')`` to get the first element of the list:: - line, = plt.plot(x, y, '-') + line, = plt.plot(x, y, '-') line.set_antialiased(False) # turn off antialising * Use the :func:`~matplotlib.pyplot.setp` command. The example below This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.