## SF.net SVN: matplotlib:[6120] trunk/matplotlib/doc/users/pyplot_tutorial. rst

 SF.net SVN: matplotlib:[6120] trunk/matplotlib/doc/users/pyplot_tutorial. rst From: - 2008-09-24 09:21:45 ```Revision: 6120 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6120&view=rev Author: mmetz_bn Date: 2008-09-24 09:21:41 +0000 (Wed, 24 Sep 2008) 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. ```

 SF.net SVN: matplotlib:[6120] trunk/matplotlib/doc/users/pyplot_tutorial. rst From: - 2008-09-24 09:21:45 ```Revision: 6120 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6120&view=rev Author: mmetz_bn Date: 2008-09-24 09:21:41 +0000 (Wed, 24 Sep 2008) 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. ```
 SF.net SVN: matplotlib:[6460] trunk/matplotlib/doc/users/pyplot_tutorial. rst From: - 2008-12-01 14:07:05 ```Revision: 6460 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6460&view=rev Author: mmetz_bn Date: 2008-12-01 14:06:49 +0000 (Mon, 01 Dec 2008) 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. ```
 SF.net SVN: matplotlib:[7191] trunk/matplotlib/doc/users/pyplot_tutorial. rst From: - 2009-06-07 14:10:58 ```Revision: 7191 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7191&view=rev Author: jdh2358 Date: 2009-06-07 13:46:10 +0000 (Sun, 07 Jun 2009) 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 -`_ +`_ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ```
 SF.net SVN: matplotlib:[8343] trunk/matplotlib/doc/users/pyplot_tutorial. rst From: - 2010-05-30 18:35:49 ```Revision: 8343 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8343&view=rev Author: efiring Date: 2010-05-30 18:35:42 +0000 (Sun, 30 May 2010) 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 `Matlab™ `_. +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. ```
 SF.net SVN: matplotlib:[8428] trunk/matplotlib/doc/users/pyplot_tutorial. rst From: - 2010-06-13 23:04:37 ```Revision: 8428 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8428&view=rev Author: efiring Date: 2010-06-13 23:04:30 +0000 (Sun, 13 Jun 2010) 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. ```