@@ -22,7 +22,7 @@ Find all objects in a figure of a certain type
22
22
Every matplotlib artist (see :ref: `artist-tutorial `) has a method
23
23
called :meth: `~matplotlib.artist.Artist.findobj ` that can be used to
24
24
recursively search the artist for any artists it may contain that meet
25
- some criteria (eg match all :class: `~matplotlib.lines.Line2D `
25
+ some criteria (e.g., match all :class: `~matplotlib.lines.Line2D `
26
26
instances or match some arbitrary filter function). For example, the
27
27
following snippet finds every object in the figure which has a
28
28
`set_color ` property and makes the object blue::
@@ -63,7 +63,7 @@ The :meth:`~matplotlib.pyplot.savefig` command has a keyword argument
63
63
backgrounds transparent when saving, but will not affect the displayed
64
64
image on the screen.
65
65
66
- If you need finer grained control, eg you do not want full transparency
66
+ If you need finer grained control, e.g., you do not want full transparency
67
67
or you want to affect the screen displayed version as well, you can set
68
68
the alpha properties directly. The figure has a
69
69
:class: `~matplotlib.patches.Rectangle ` instance called *patch *
@@ -194,7 +194,7 @@ this chicken and egg problem is to wait until the figure is draw by
194
194
connecting
195
195
(:meth: `~matplotlib.backend_bases.FigureCanvasBase.mpl_connect `) to the
196
196
"on_draw" signal (:class: `~matplotlib.backend_bases.DrawEvent `) and
197
- get the window extent there, and then do something with it, eg move
197
+ get the window extent there, and then do something with it, e.g., move
198
198
the left of the canvas over; see :ref: `event-handling-tutorial `.
199
199
200
200
Here is an example that gets a bounding box in relative figure coordinates
@@ -252,10 +252,10 @@ setting in the right subplots.
252
252
Skip dates where there is no data
253
253
---------------------------------
254
254
255
- When plotting time series, eg financial time series, one often wants
256
- to leave out days on which there is no data, eg weekends. By passing
255
+ When plotting time series, e.g., financial time series, one often wants
256
+ to leave out days on which there is no data, e.g., weekends. By passing
257
257
in dates on the x-xaxis, you get large horizontal gaps on periods when
258
- there is not data. The solution is to pass in some proxy x-data, eg
258
+ there is not data. The solution is to pass in some proxy x-data, e.g.,
259
259
evenly sampled indices, and then use a custom formatter to format
260
260
these as dates. The example below shows how to use an 'index formatter'
261
261
to achieve the desired plot::
@@ -559,7 +559,7 @@ at the end of the page in the sidebar (or `here
559
559
The sphinx website is a good resource for learning sphinx, but we have
560
560
put together a cheat-sheet at :ref: `documenting-matplotlib ` which
561
561
shows you how to get started, and outlines the matplotlib conventions
562
- and extensions, eg for including plots directly from external code in
562
+ and extensions, e.g., for including plots directly from external code in
563
563
your documents.
564
564
565
565
Once your documentation contributions are working (and hopefully
0 commit comments