diff --git a/galleries/tutorials/artists.py b/galleries/tutorials/artists.py index 4f93f7c71a6e..557ded9f1b14 100644 --- a/galleries/tutorials/artists.py +++ b/galleries/tutorials/artists.py @@ -38,12 +38,7 @@ helper methods to create the primitives. In the example below, we create a ``Figure`` instance using :func:`matplotlib.pyplot.figure`, which is a convenience method for instantiating ``Figure`` instances and connecting them -with your user interface or drawing toolkit ``FigureCanvas``. As we will -discuss below, this is not necessary -- you can work directly with PostScript, -PDF Gtk+, or wxPython ``FigureCanvas`` instances, instantiate your ``Figures`` -directly and connect them yourselves -- but since we are focusing here on the -``Artist`` API we'll let :mod:`~matplotlib.pyplot` handle some of those details -for us:: +with a GUI framework so that they can be shown in a window on the screen:: import matplotlib.pyplot as plt fig = plt.figure() @@ -94,9 +89,8 @@ class in the Matplotlib API, and the one you will be working with most In [102]: line Out[102]: -If you make subsequent calls to ``ax.plot`` (and the hold state is "on" -which is the default) then additional lines will be added to the list. -You can remove a line later by calling its ``remove`` method:: +If you make subsequent calls to ``ax.plot`` then additional lines will be added +to the list. You can remove a line later by calling its ``remove`` method:: line = ax.lines[0] line.remove() @@ -301,7 +295,7 @@ class in the Matplotlib API, and the one you will be working with most # Out[159]: # # In [160]: print(fig.axes) -# [, ] +# [, ] # # Because the figure maintains the concept of the "current Axes" (see # :meth:`Figure.gca ` and