|
38 | 38 | helper methods to create the primitives. In the example below, we create a |
39 | 39 | ``Figure`` instance using :func:`matplotlib.pyplot.figure`, which is a |
40 | 40 | convenience method for instantiating ``Figure`` instances and connecting them |
41 | | -with your user interface or drawing toolkit ``FigureCanvas``. As we will |
42 | | -discuss below, this is not necessary -- you can work directly with PostScript, |
43 | | -PDF Gtk+, or wxPython ``FigureCanvas`` instances, instantiate your ``Figures`` |
44 | | -directly and connect them yourselves -- but since we are focusing here on the |
45 | | -``Artist`` API we'll let :mod:`~matplotlib.pyplot` handle some of those details |
46 | | -for us:: |
| 41 | +with a GUI framework so that they can be shown in a window on the screen:: |
47 | 42 |
|
48 | 43 | import matplotlib.pyplot as plt |
49 | 44 | fig = plt.figure() |
@@ -94,9 +89,8 @@ class in the Matplotlib API, and the one you will be working with most |
94 | 89 | In [102]: line |
95 | 90 | Out[102]: <matplotlib.lines.Line2D at 0x19a95710> |
96 | 91 |
|
97 | | -If you make subsequent calls to ``ax.plot`` (and the hold state is "on" |
98 | | -which is the default) then additional lines will be added to the list. |
99 | | -You can remove a line later by calling its ``remove`` method:: |
| 92 | +If you make subsequent calls to ``ax.plot`` then additional lines will be added |
| 93 | +to the list. You can remove a line later by calling its ``remove`` method:: |
100 | 94 |
|
101 | 95 | line = ax.lines[0] |
102 | 96 | line.remove() |
@@ -301,7 +295,7 @@ class in the Matplotlib API, and the one you will be working with most |
301 | 295 | # Out[159]: <Axes:> |
302 | 296 | # |
303 | 297 | # In [160]: print(fig.axes) |
304 | | -# [<Axes:>, <matplotlib.axes._axes.Axes object at 0x7f0768702be0>] |
| 298 | +# [<Axes: >, <Axes: >] |
305 | 299 | # |
306 | 300 | # Because the figure maintains the concept of the "current Axes" (see |
307 | 301 | # :meth:`Figure.gca <matplotlib.figure.Figure.gca>` and |
|
0 commit comments