@@ -21,7 +21,7 @@ Find all objects in a figure of a certain type
21
21
Every matplotlib artist (see :ref: `artist-tutorial `) has a method
22
22
called :meth: `~matplotlib.artist.Artist.findobj ` that can be used to
23
23
recursively search the artist for any artists it may contain that meet
24
- some criteria (eg match all :class: `~matplotlib.lines.Line2D `
24
+ some criteria (e.g. match all :class: `~matplotlib.lines.Line2D `
25
25
instances or match some arbitrary filter function). For example, the
26
26
following snippet finds every object in the figure which has a
27
27
`set_color ` property and makes the object blue::
@@ -47,7 +47,7 @@ Save transparent figures
47
47
The :meth: `~matplotlib.pyplot.savefig ` command has a keyword argument
48
48
*transparent * which, if True, will make the figure and axes
49
49
backgrounds transparent when saving, but will not affect the displayed
50
- image on the screen. If you need finer grained control, eg you do not
50
+ image on the screen. If you need finer grained control, e.g. you do not
51
51
want full transparency or you to affect the screen displayed version
52
52
as well, you can set the alpha properties directly. The figure has a
53
53
:class: `matplotlib.patches.Rectangle ` instance called *patch *
@@ -62,7 +62,7 @@ any property on them directly (*facecolor*, *edgecolor*, *linewidth*,
62
62
63
63
If you need *all * the figure elements to be transparent, there is
64
64
currently no global alpha setting, but you can set the alpha channel
65
- on individual elements, eg ::
65
+ on individual elements, e.g. ::
66
66
67
67
ax.plot(x, y, alpha=0.5)
68
68
ax.set_xlabel('volts', alpha=0.5)
@@ -170,7 +170,7 @@ this chicken and egg problem is to wait until the figure is draw by
170
170
connecting
171
171
(:meth: `matplotlib.backend_bases.FigureCanvasBase.mpl_connect `) to the
172
172
"on_draw" signal (:class: `~matplotlib.backend_bases.DrawEvent `) and
173
- get the window extent there, and then do something with it, eg move
173
+ get the window extent there, and then do something with it, e.g. move
174
174
the left of the canvas over; see :ref: `event-handling-tutorial `.
175
175
176
176
Here is an example that gets a bounding box in relative figure coordinates
@@ -228,10 +228,10 @@ setting in the right subplots.
228
228
Skip dates where there is no data
229
229
-------------------------------------
230
230
231
- When plotting time series, eg financial time series, one often wants
232
- to leave out days on which there is no data, eg weekends. By passing
231
+ When plotting time series, e.g. financial time series, one often wants
232
+ to leave out days on which there is no data, e.g. weekends. By passing
233
233
in dates on the x-xaxis, you get large horizontal gaps on periods when
234
- there is not data. The solution is to pass in some proxy x-data, eg
234
+ there is not data. The solution is to pass in some proxy x-data, e.g.
235
235
evenly sampled indices, and then use a custom formatter to format
236
236
these as dates. The example below shows how to use an 'index formatter'
237
237
to achieve the desired plot::
@@ -355,7 +355,7 @@ Make a movie
355
355
356
356
357
357
If you want to take an animated plot and turn it into a movie, the
358
- best approach is to save a series of image files (eg PNG) and use an
358
+ best approach is to save a series of image files (e.g. PNG) and use an
359
359
external tool to convert them to a movie. You can use `mencoder
360
360
<http://www.mplayerhq.hu/DOCS/HTML/en/mencoder.html> `_,
361
361
which is part of the `mplayer <http://www.mplayerhq.hu >`_ suite
@@ -623,7 +623,7 @@ at the end of the page in the sidebar (or `here
623
623
The sphinx website is a good resource for learning sphinx, but we have
624
624
put together a cheat-sheet at :ref: `documenting-matplotlib ` which
625
625
shows you how to get started, and outlines the matplotlib conventions
626
- and extensions, eg for including plots directly from external code in
626
+ and extensions, e.g. for including plots directly from external code in
627
627
your documents.
628
628
629
629
Once your documentation contributions are working (and hopefully
0 commit comments