Skip to content

Commit ef80b70

Browse files
committed
eg (without a comma) to e.g.,
Used: ```bash find * -type f -exec sed -i 's/\beg\b/e.g.,/g' {} \; ```
1 parent 274af80 commit ef80b70

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+112
-112
lines changed

doc/README.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ documentation. All of the documentation is written using sphinx, a
66
python documentation system built on top of ReST. This directory contains
77

88

9-
* users - the user documentation, eg plotting tutorials, configuration
9+
* users - the user documentation, e.g., plotting tutorials, configuration
1010
tips, etc.
1111

1212
* devel - documentation for matplotlib developers

doc/api/api_changes.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,7 @@ Changes for 0.90.1
13051305
units.ConversionInterface.tickers renamed to
13061306
units.ConversionInterface.axisinfo and it now returns a
13071307
units.AxisInfo object rather than a tuple. This will make it
1308-
easier to add axis info functionality (eg I added a default label
1308+
easier to add axis info functionality (e.g., I added a default label
13091309
on this iteration) w/o having to change the tuple length and hence
13101310
the API of the client code every time new functionality is added.
13111311
Also, units.ConversionInterface.convert_to_value is now simply
@@ -1790,7 +1790,7 @@ Changes for 0.71
17901790
pylab still imports most of the symbols from Numerix, MLab, fft,
17911791
etc, but is more cautious. For names that clash with python names
17921792
(min, max, sum), pylab keeps the builtins and provides the numeric
1793-
versions with an a* prefix, eg (amin, amax, asum)
1793+
versions with an a* prefix, e.g., (amin, amax, asum)
17941794

17951795
Changes for 0.70
17961796
================
@@ -1937,7 +1937,7 @@ pcolor_classic and scatter_classic.
19371937

19381938
The return value from pcolor is a PolyCollection. Most of the
19391939
propertes that are available on rectangles or other patches are also
1940-
available on PolyCollections, eg you can say::
1940+
available on PolyCollections, e.g., you can say::
19411941

19421942
c = scatter(blah, blah)
19431943
c.set_linewidth(1.0)
@@ -1955,7 +1955,7 @@ over the return value of scatter or pcolor to set properties for the
19551955
entire list.
19561956

19571957
If you want the different elements of a collection to vary on a
1958-
property, eg to have different line widths, see matplotlib.collections
1958+
property, e.g., to have different line widths, see matplotlib.collections
19591959
for a discussion on how to set the properties as a sequence.
19601960

19611961
For scatter, the size argument is now in points^2 (the area of the
@@ -2215,7 +2215,7 @@ Changes for 0.42
22152215
needed with double buffered drawing. Ditto with state change.
22162216
Text instances have a get_prop_tup method that returns a hashable
22172217
tuple of text properties which you can use to see if text props
2218-
have changed, eg by caching a font or layout instance in a dict
2218+
have changed, e.g., by caching a font or layout instance in a dict
22192219
with the prop tup as a key -- see RendererGTK.get_pango_layout in
22202220
backend_gtk for an example.
22212221

@@ -2236,7 +2236,7 @@ Changes for 0.42
22362236

22372237
* matplotlib.matlab._get_current_fig_manager renamed to
22382238
matplotlib.matlab.get_current_fig_manager to allow user access to
2239-
the GUI window attribute, eg figManager.window for GTK and
2239+
the GUI window attribute, e.g., figManager.window for GTK and
22402240
figManager.frame for wx
22412241

22422242
Changes for 0.40

doc/devel/documenting_mpl.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ So we can include plots from the examples dir using the symlink::
392392

393393

394394
We used to use a symlink for :file:`mpl-data` too, but the distro
395-
becomes very large on platforms that do not support links (eg the font
395+
becomes very large on platforms that do not support links (e.g., the font
396396
files are duplicated and large)
397397

398398
.. _internal-section-refs:
@@ -401,7 +401,7 @@ Internal section references
401401
===========================
402402

403403
To maximize internal consistency in section labeling and references,
404-
use hyphen separated, descriptive labels for section references, eg::
404+
use hyphen separated, descriptive labels for section references, e.g.,::
405405

406406
.. _howto-webapp:
407407

@@ -429,7 +429,7 @@ Section names, etc
429429
==================
430430

431431
For everything but top level chapters, please use ``Upper lower`` for
432-
section titles, eg ``Possible hangups`` rather than ``Possible
432+
section titles, e.g., ``Possible hangups`` rather than ``Possible
433433
Hangups``
434434

435435
Inheritance diagrams

doc/devel/license.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ distributing L/GPL code through an separate channel, possibly a
1414
toolkit. If you include code, make sure you include a copy of that
1515
code's license in the license directory if the code's license requires
1616
you to distribute the license with it. Non-BSD compatible licenses
17-
are acceptable in matplotlib toolkits (eg basemap), but make sure you
17+
are acceptable in matplotlib toolkits (e.g., basemap), but make sure you
1818
clearly state the licenses you are using.
1919

2020
Why BSD compatible?

doc/devel/release_guide.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Testing
1919
* Run :file:`unit/memleak_hawaii3.py` and make sure there are no
2020
memory leaks
2121

22-
* try some GUI examples, eg :file:`simple_plot.py` with GTKAgg, TkAgg, etc...
22+
* try some GUI examples, e.g., :file:`simple_plot.py` with GTKAgg, TkAgg, etc...
2323

2424
* remove font cache and tex cache from :file:`.matplotlib` and test
2525
with and without cache on some example script

doc/faq/howto_faq.rst

+7-7
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Find all objects in a figure of a certain type
2222
Every matplotlib artist (see :ref:`artist-tutorial`) has a method
2323
called :meth:`~matplotlib.artist.Artist.findobj` that can be used to
2424
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`
2626
instances or match some arbitrary filter function). For example, the
2727
following snippet finds every object in the figure which has a
2828
`set_color` property and makes the object blue::
@@ -63,7 +63,7 @@ The :meth:`~matplotlib.pyplot.savefig` command has a keyword argument
6363
backgrounds transparent when saving, but will not affect the displayed
6464
image on the screen.
6565

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
6767
or you want to affect the screen displayed version as well, you can set
6868
the alpha properties directly. The figure has a
6969
: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
194194
connecting
195195
(:meth:`~matplotlib.backend_bases.FigureCanvasBase.mpl_connect`) to the
196196
"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
198198
the left of the canvas over; see :ref:`event-handling-tutorial`.
199199

200200
Here is an example that gets a bounding box in relative figure coordinates
@@ -252,10 +252,10 @@ setting in the right subplots.
252252
Skip dates where there is no data
253253
---------------------------------
254254

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
257257
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.,
259259
evenly sampled indices, and then use a custom formatter to format
260260
these as dates. The example below shows how to use an 'index formatter'
261261
to achieve the desired plot::
@@ -559,7 +559,7 @@ at the end of the page in the sidebar (or `here
559559
The sphinx website is a good resource for learning sphinx, but we have
560560
put together a cheat-sheet at :ref:`documenting-matplotlib` which
561561
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
563563
your documents.
564564

565565
Once your documentation contributions are working (and hopefully

doc/faq/installing_faq.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ Standalone binary installers for Windows
391391
If you have already installed Python and numpy, you can use one of the
392392
matplotlib binary installers for windows -- you can get these from the
393393
`download <http://matplotlib.org/downloads.html>`_ site. Chose the files with
394-
an ``.exe`` extension that match your version of Python (eg ``py2.7`` if you
394+
an ``.exe`` extension that match your version of Python (e.g., ``py2.7`` if you
395395
installed Python 2.7). If you haven't already installed Python, you can get
396396
the official version from the `Python web site
397397
<http://python.org/download/>`_.

doc/faq/usage_faq.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ from the canvas (the place where the drawing goes). The canonical
336336
renderer for user interfaces is ``Agg`` which uses the `Anti-Grain
337337
Geometry`_ C++ library to make a raster (pixel) image of the figure.
338338
All of the user interfaces except ``macosx`` can be used with
339-
agg rendering, eg
339+
agg rendering, e.g.,
340340
``WXAgg``, ``GTKAgg``, ``QT4Agg``, ``TkAgg``. In
341341
addition, some of the user interfaces support other rendering engines.
342342
For example, with GTK, you can also select GDK rendering (backend

doc/users/artists.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ set_major_formatter)
577577
====================== =========================================================
578578
Accessor method Description
579579
====================== =========================================================
580-
get_scale The scale of the axis, eg 'log' or 'linear'
580+
get_scale The scale of the axis, e.g., 'log' or 'linear'
581581
get_view_interval The interval instance of the axis view limits
582582
get_data_interval The interval instance of the axis data limits
583583
get_gridlines A list of grid lines for the Axis

doc/users/event_handling.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ Object picking
410410
==============
411411

412412
You can enable picking by setting the ``picker`` property of an
413-
:class:`~matplotlib.artist.Artist` (eg a matplotlib
413+
:class:`~matplotlib.artist.Artist` (e.g., a matplotlib
414414
:class:`~matplotlib.lines.Line2D`, :class:`~matplotlib.text.Text`,
415415
:class:`~matplotlib.patches.Patch`, :class:`~matplotlib.patches.Polygon`,
416416
:class:`~matplotlib.patches.AxesImage`, etc...)
@@ -429,7 +429,7 @@ There are a variety of meanings of the ``picker`` property:
429429
points and the the artist will fire off an event if its data is
430430
within epsilon of the mouse event. For some artists like lines
431431
and patch collections, the artist may provide additional data to
432-
the pick event that is generated, eg the indices of the data
432+
the pick event that is generated, e.g., the indices of the data
433433
within epsilon of the pick event.
434434

435435
``function``
@@ -457,7 +457,7 @@ your callback is always fired with two attributes:
457457

458458
``mouseevent`` the mouse event that generate the pick event. The
459459
mouse event in turn has attributes like ``x`` and ``y`` (the
460-
coords in display space, eg pixels from left, bottom) and xdata,
460+
coords in display space, e.g., pixels from left, bottom) and xdata,
461461
ydata (the coords in data space). Additionally, you can get
462462
information about which buttons were pressed, which keys were
463463
pressed, which :class:`~matplotlib.axes.Axes` the mouse is over,
@@ -471,7 +471,7 @@ your callback is always fired with two attributes:
471471
Additionally, certain artists like :class:`~matplotlib.lines.Line2D`
472472
and :class:`~matplotlib.collections.PatchCollection` may attach
473473
additional meta data like the indices into the data that meet the
474-
picker criteria (eg all the points in the line that are within the
474+
picker criteria (e.g., all the points in the line that are within the
475475
specified epsilon tolerance)
476476

477477
Simple picking example

doc/users/license.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Matplotlib only uses BSD compatible code, and its license is based on
99
the `PSF <http://www.python.org/psf/license>`_ license. See the Open
1010
Source Initiative `licenses page
1111
<http://www.opensource.org/licenses>`_ for details on individual
12-
licenses. Non-BSD compatible licenses (eg LGPL) are acceptable in
12+
licenses. Non-BSD compatible licenses (e.g., LGPL) are acceptable in
1313
matplotlib toolkits. For a discussion of the motivations behind the
1414
licencing choice, see :ref:`license-discussion`.
1515

doc/users/path_tutorial.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@ All of the simple patch primitives in matplotlib, Rectangle, Circle,
122122
Polygon, etc, are implemented with simple path. Plotting functions
123123
like :meth:`~matplotlib.axes.Axes.hist` and
124124
:meth:`~matplotlib.axes.Axes.bar`, which create a number of
125-
primitives, eg a bunch of Rectangles, can usually be implemented more
125+
primitives, e.g., a bunch of Rectangles, can usually be implemented more
126126
efficiently using a compound path. The reason ``bar`` creates a list
127127
of rectangles and not a compound path is largely historical: the
128128
:class:`~matplotlib.path.Path` code is comparatively new and ``bar``
129129
predates it. While we could change it now, it would break old code,
130130
so here we will cover how to create compound paths, replacing the
131131
functionality in bar, in case you need to do so in your own code for
132-
efficiency reasons, eg you are creating an animated bar plot.
132+
efficiency reasons, e.g., you are creating an animated bar plot.
133133

134134
We will make the histogram chart by creating a series of rectangles
135135
for each histogram bar: the rectangle width is the bin width and the

doc/users/pyplot_tutorial.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ several ways to set line properties
7171

7272

7373
* Use the setter methods of the ``Line2D`` instance. ``plot`` returns a list
74-
of lines; eg ``line1, line2 = plot(x1,y1,x2,y2)``. Below I have only
74+
of lines; e.g., ``line1, line2 = plot(x1,y1,x2,y2)``. Below I have only
7575
one line so it is a list of length 1. I use tuple unpacking in the
7676
``line, = plot(x, y, 'o')`` to get the first element of the list::
7777

doc/users/recipes.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ figures and overcome some matplotlib warts.
1212
Sharing axis limits and views
1313
=============================
1414

15-
It's common to make two or more plots which share an axis, eg two
15+
It's common to make two or more plots which share an axis, e.g., two
1616
subplots with time as a common axis. When you pan and zoom around on
1717
one, you want the other to move around with you. To facilitate this,
1818
matplotlib Axes support a ``sharex`` and ``sharey`` attribute. When
@@ -126,9 +126,9 @@ you will see that the x tick labels are all squashed together.
126126
Another annoyance is that if you hover the mouse over the window and
127127
look in the lower right corner of the matplotlib toolbar
128128
(:ref:`navigation-toolbar`) at the x and y coordinates, you see that
129-
the x locations are formatted the same way the tick labels are, eg
129+
the x locations are formatted the same way the tick labels are, e.g.,
130130
"Dec 2004". What we'd like is for the location in the toolbar to have
131-
a higher degree of precision, eg giving us the exact date out mouse is
131+
a higher degree of precision, e.g., giving us the exact date out mouse is
132132
hovering over. To fix the first problem, we can use
133133
:func:`matplotlib.figure.Figure.autofmt_xdate` and to fix the second
134134
problem we can use the ``ax.fmt_xdata`` attribute which can be set to
@@ -161,7 +161,7 @@ Fill Between and Alpha
161161
The :meth:`~matplotlib.axes.Axes.fill_between` function generates a
162162
shaded region between a min and max boundary that is useful for
163163
illustrating ranges. It has a very handy ``where`` argument to
164-
combine filling with logical ranges, eg to just fill in a curve over
164+
combine filling with logical ranges, e.g., to just fill in a curve over
165165
some threshold value.
166166

167167
At its most basic level, ``fill_between`` can be use to enhance a

doc/users/text_intro.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Text introduction
66
matplotlib has excellent text support, including mathematical
77
expressions, truetype support for raster and vector outputs, newline
88
separated text with arbitrary rotations, and unicode support. Because
9-
we embed the fonts directly in the output documents, eg for postscript
9+
we embed the fonts directly in the output documents, e.g., for postscript
1010
or PDF, what you see on the screen is what you get in the hardcopy.
1111
`freetype2 <http://freetype.sourceforge.net/index2.html>`_ support
1212
produces very nice, antialiased fonts, that look good even at small

doc/users/text_props.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Text properties and layout
55

66
The :class:`matplotlib.text.Text` instances have a variety of
77
properties which can be configured via keyword arguments to the text
8-
commands (eg :func:`~matplotlib.pyplot.title`,
8+
commands (e.g., :func:`~matplotlib.pyplot.title`,
99
:func:`~matplotlib.pyplot.xlabel` and :func:`~matplotlib.pyplot.text`).
1010

1111
========================== ==============================================================================
@@ -28,7 +28,7 @@ name or fontname string e.g., [``'Sans'`` | ``'Courier'`` | ``'Helvetica'``
2828
picker [None|float|boolean|callable]
2929
position (x,y)
3030
rotation [ angle in degrees ``'vertical'`` | ``'horizontal'``
31-
size or fontsize [ size in points | relative size eg ``'smaller'``, ``'x-large'`` ]
31+
size or fontsize [ size in points | relative size, e.g., ``'smaller'``, ``'x-large'`` ]
3232
style or fontstyle [ ``'normal'`` | ``'italic'`` | ``'oblique'``]
3333
text string or anything printable with '%s' conversion
3434
transform a matplotlib.transform transformation instance

doc/users/transforms_tutorial.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ Using offset transforms to create a shadow effect
285285
=================================================
286286

287287
One use of transformations is to create a new transformation that is
288-
offset from another transformation, eg to place one object shifted a
288+
offset from another transformation, e.g., to place one object shifted a
289289
bit relative to another object. Typically you want the shift to be in
290290
some physical dimension, like points or inches rather than in data
291291
coordinates, so that the shift effect is constant at different zoom

doc/users/whats_new.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,7 @@ Here are the 0.98.4 notes from the CHANGELOG::
15011501

15021502
Some of the changes Michael made to improve the output of the
15031503
property tables in the rest docs broke of made difficult to use
1504-
some of the interactive doc helpers, eg setp and getp. Having all
1504+
some of the interactive doc helpers, e.g., setp and getp. Having all
15051505
the rest markup in the ipython shell also confused the docstrings.
15061506
I added a new rc param docstring.harcopy, to format the docstrings
15071507
differently for hardcopy and other use. The ArtistInspector

examples/README.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Probably the most common way people use matplotlib is with the
88
procedural interface, which follows the matlab/IDL/mathematica
99
approach of using simple procedures like "plot" or "title" to modify
1010
the current figure. These examples are included in the "pylab_examples"
11-
directory. If you want to write more robust scripts, eg for
11+
directory. If you want to write more robust scripts, e.g., for
1212
production use or in a web application server, you will probably want
1313
to use the matplotlib API for full control. These examples are found
1414
in the "api" directory. Below is a brief description of the different
@@ -41,7 +41,7 @@ directories found here:
4141

4242
* units - working with unit data an custom types in matplotlib
4343

44-
* user_interfaces - using matplotlib in a GUI application, eg
44+
* user_interfaces - using matplotlib in a GUI application, e.g.,
4545
TkInter, WXPython, pygtk, pyqt or FLTK widgets
4646

4747
* widgets - Examples using interactive widgets

examples/api/date_index_formatter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
When plotting time series, eg financial time series, one often wants
2+
When plotting time series, e.g., financial time series, one often wants
33
to leave out days on which there is no data, eh weekends. The example
44
below shows how to use an 'index formatter' to achieve the desired plot
55
"""

examples/api/font_family_rc.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"""
22
You can explicitly set which font family is picked up for a given font
3-
style (eg 'serif', 'sans-serif', or 'monospace').
3+
style (e.g., 'serif', 'sans-serif', or 'monospace').
44
55
In the example below, we only allow one font family (Tahoma) for the
66
san-serif font style. You the default family with the font.family rc
7-
param, eg::
7+
param, e.g.,::
88
99
rcParams['font.family'] = 'sans-serif'
1010

examples/pylab_examples/accented_text.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
55
The following accents are provided: \hat, \breve, \grave, \bar,
66
\acute, \tilde, \vec, \dot, \ddot. All of them have the same syntax,
7-
eg to make an overbar you do \bar{o} or to make an o umlaut you do
8-
\ddot{o}. The shortcuts are also provided, eg: \"o \'e \`e \~n \.x
7+
e.g., to make an overbar you do \bar{o} or to make an o umlaut you do
8+
\ddot{o}. The shortcuts are also provided, e.g.,: \"o \'e \`e \~n \.x
99
\^y
1010
1111
"""

0 commit comments

Comments
 (0)