Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6e1e3e7

Browse files
committed
applied manuels artist rst patch
svn path=/trunk/matplotlib/; revision=6234
1 parent 24f7ccf commit 6e1e3e7

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

doc/users/artists.rst

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ Continuing with our example::
8080

8181
In this example, ``ax`` is the ``Axes`` instance created by the
8282
``fig.add_subplot`` call above (remember ``Subplot`` is just a
83-
subclass of ``Axes``) and when you call ``ax.plot``, it createsa
84-
``Line2D`` instance and adds it the :attr:`Axes.lines
83+
subclass of ``Axes``) and when you call ``ax.plot``, it creates a
84+
``Line2D`` instance and adds it to the :attr:`Axes.lines
8585
<matplotlib.axes.Axes.lines>` list. In the interactive `ipython
86-
<http://ipython.scipy.org/>`_ session below, you can see that
86+
<http://ipython.scipy.org/>`_ session below, you can see that the
8787
``Axes.lines`` list is length one and contains the same line that was
8888
returned by the ``line, = ax.plot(x, y, 'o')`` call:
8989

@@ -104,7 +104,7 @@ of these will work::
104104
ax.lines.remove(line) # one or the other, not both!
105105

106106
The Axes also has helper methods to configure and decorate the x-axis
107-
and y-axis tick, ticklabels and axis labels::
107+
and y-axis tick, tick labels and axis labels::
108108

109109
xtext = ax.set_xlabel('my xdata') # returns a Text instance
110110
ytext = ax.set_ylabel('my xdata')
@@ -169,8 +169,8 @@ clip_box The bounding box that clips the Artist
169169
clip_on Whether clipping is enabled
170170
clip_path The path the artist is clipped to
171171
contains A picking function to test whether the artist contains the pick point
172-
figure The figure instance the aritst lives in, possibly None
173-
label A text label (eg for auto-labeling)
172+
figure The figure instance the artist lives in, possibly None
173+
label A text label (eg. for auto-labeling)
174174
picker A python object that controls object picking
175175
transform The transformation
176176
visible A boolean whether the artist should be drawn
@@ -240,17 +240,18 @@ properties for a give object.
240240
Object containers
241241
=================
242242

243-
Now that we know how to inspect set the properties of a given object
244-
we want to configure, we need to now how to get at that object. As
245-
mentioned in the introduction, there are two kinds of objects:
243+
244+
Now that we know how to inspect and set the properties of a given
245+
object we want to configure, we need to now how to get at that object.
246+
As mentioned in the introduction, there are two kinds of objects:
246247
primitives and containers. The primitives are usually the things you
247248
want to configure (the font of a :class:`~matplotlib.text.Text`
248249
instance, the width of a :class:`~matplotlib.lines.Line2D`) although
249250
the containers also have some properties as well -- for example the
250251
:class:`~matplotlib.axes.Axes` :class:`~matplotlib.artist.Artist` is a
251252
container that contains many of the primitives in your plot, but it
252-
also has properties like the ``xscale`` to control whether the xaxis is
253-
'linear' or 'log'. In this section we'll review where the various
253+
also has properties like the ``xscale`` to control whether the xaxis
254+
is 'linear' or 'log'. In this section we'll review where the various
254255
container objects store the ``Artists`` that you want to get at.
255256

256257
.. _figure-container:

0 commit comments

Comments
 (0)