Skip to content

Commit 274af80

Browse files
committed
eg, to e.g.,
Used: ```bash find * -type f -exec sed -i 's/\beg,/e.g.,/g' {} \; ```
1 parent 9450b22 commit 274af80

17 files changed

+25
-25
lines changed

doc/api/api_changes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1810,7 +1810,7 @@ Changes for 0.65.1
18101810
removed add_axes and add_subplot from backend_bases. Use
18111811
figure.add_axes and add_subplot instead. The figure now manages the
18121812
current axes with gca and sca for get and set current axes. If you
1813-
have code you are porting which called, eg, figmanager.add_axes, you
1813+
have code you are porting which called, e.g., figmanager.add_axes, you
18141814
can now simply do figmanager.canvas.figure.add_axes.
18151815

18161816
Changes for 0.65

doc/devel/documenting_mpl.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ Referring to mpl documents
362362
In the documentation, you may want to include to a document in the
363363
matplotlib src, e.g., a license file or an image file from `mpl-data`,
364364
refer to it via a relative path from the document where the rst file
365-
resides, eg, in :file:`users/navigation_toolbar.rst`, we refer to the
365+
resides, e.g., in :file:`users/navigation_toolbar.rst`, we refer to the
366366
image icons with::
367367

368368
.. image:: ../../lib/matplotlib/mpl-data/images/subplots.png

doc/faq/troubleshooting_faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ If you compiled matplotlib yourself, please also provide
125125
platform that are useful for the matplotlib developers to diagnose
126126
your problem.
127127

128-
* your compiler version -- eg, ``gcc --version``
128+
* your compiler version -- e.g., ``gcc --version``
129129

130130
Including this information in your first e-mail to the mailing list
131131
will save a lot of time.

doc/users/mathtext.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ The default font is *italics* for mathematical symbols.
161161
This is useful, for example, to use the same font as regular
162162
non-math text for math text, by setting it to ``regular``.
163163

164-
To change fonts, eg, to write "sin" in a Roman font, enclose the text
164+
To change fonts, e.g., to write "sin" in a Roman font, enclose the text
165165
in a font command::
166166

167167
r'$s(t) = \mathcal{A}\mathrm{sin}(2 \omega t)$'

doc/users/pyplot_tutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Pyplot tutorial
77
:mod:`matplotlib.pyplot` is a collection of command style functions
88
that make matplotlib work like MATLAB.
99
Each ``pyplot`` function makes
10-
some change to a figure: eg, create a figure, create a plotting area
10+
some change to a figure: e.g., create a figure, create a plotting area
1111
in a figure, plot some lines in a plotting area, decorate the plot
1212
with labels, etc.... :mod:`matplotlib.pyplot` is stateful, in that it
1313
keeps track of the current figure and plotting area, and the plotting

doc/users/shell.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ to update the plot every time a single property is changed, only once
1010
after all the properties have changed.
1111

1212
But when working from the python shell, you usually do want to update
13-
the plot with every command, eg, after changing the
13+
the plot with every command, e.g., after changing the
1414
:func:`~matplotlib.pyplot.xlabel`, or the marker style of a line.
1515
While this is simple in concept, in practice it can be tricky, because
1616
matplotlib is a graphical user interface application under the hood,

doc/users/text_props.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ horizontalalignment or ha [ ``'center'`` | ``'right'`` | ``'left'`` ]
2424
label any string
2525
linespacing float
2626
multialignment [``'left'`` | ``'right'`` | ``'center'`` ]
27-
name or fontname string eg, [``'Sans'`` | ``'Courier'`` | ``'Helvetica'`` ...]
27+
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'``

examples/misc/rc_traits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
}
3434

3535
def hex2color(s):
36-
"Convert hex string (like html uses, eg, #efefef) to a r,g,b tuple"
36+
"Convert hex string (like html uses, e.g., #efefef) to a r,g,b tuple"
3737
return tuple([int(n, 16)/255.0 for n in (s[1:3], s[3:5], s[5:7])])
3838

3939
class RGBA(traits.HasTraits):

lib/matplotlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,7 @@ def interactive(b):
13341334
"""
13351335
Set interactive mode to boolean b.
13361336
1337-
If b is True, then draw after every plotting command, eg, after xlabel
1337+
If b is True, then draw after every plotting command, e.g., after xlabel
13381338
"""
13391339
rcParams['interactive'] = b
13401340

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1899,7 +1899,7 @@ def autoscale(self, enable=True, axis='both', tight=None):
18991899
def autoscale_view(self, tight=None, scalex=True, scaley=True):
19001900
"""
19011901
Autoscale the view limits using the data limits. You can
1902-
selectively autoscale only a single axis, eg, the xaxis by
1902+
selectively autoscale only a single axis, e.g., the xaxis by
19031903
setting *scaley* to *False*. The autoscaling preserves any
19041904
axis direction reversal that has already been done.
19051905

lib/matplotlib/axis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ def grid(self, b=None, which='major', **kwargs):
13471347
*kwargs* are supplied, it is assumed you want the grid on and *b*
13481348
will be set to True.
13491349
1350-
*kwargs* are used to set the line properties of the grids, eg,
1350+
*kwargs* are used to set the line properties of the grids, e.g.,
13511351
13521352
xax.grid(color='r', linestyle='-', linewidth=2)
13531353
"""

lib/matplotlib/backend_bases.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ def points_to_pixels(self, points):
717717
return points converted to pixels
718718
719719
You need to override this function (unless your backend
720-
doesn't have a dpi, eg, postscript or svg). Some imaging
720+
doesn't have a dpi, e.g., postscript or svg). Some imaging
721721
systems assume some value for pixels per inch::
722722
723723
points to pixels = points * pixels_per_inch/72.0 * dpi/72.0
@@ -2233,15 +2233,15 @@ def get_default_filetype(cls):
22332233
def get_window_title(self):
22342234
"""
22352235
Get the title text of the window containing the figure.
2236-
Return None if there is no window (eg, a PS backend).
2236+
Return None if there is no window (e.g., a PS backend).
22372237
"""
22382238
if hasattr(self, "manager"):
22392239
return self.manager.get_window_title()
22402240

22412241
def set_window_title(self, title):
22422242
"""
22432243
Set the title text of the window containing the figure. Note that
2244-
this has no effect if there is no window (eg, a PS backend).
2244+
this has no effect if there is no window (e.g., a PS backend).
22452245
"""
22462246
if hasattr(self, "manager"):
22472247
self.manager.set_window_title(title)
@@ -2259,9 +2259,9 @@ def switch_backends(self, FigureCanvasClass):
22592259
"""
22602260
Instantiate an instance of FigureCanvasClass
22612261
2262-
This is used for backend switching, eg, to instantiate a
2262+
This is used for backend switching, e.g., to instantiate a
22632263
FigureCanvasPS from a FigureCanvasGTK. Note, deep copying is
2264-
not done, so any changes to one of the instances (eg, setting
2264+
not done, so any changes to one of the instances (e.g., setting
22652265
figure size or line props), will be reflected in the other
22662266
"""
22672267
newCanvas = FigureCanvasClass(self.figure)
@@ -2600,14 +2600,14 @@ def show_popup(self, msg):
26002600
def get_window_title(self):
26012601
"""
26022602
Get the title text of the window containing the figure.
2603-
Return None for non-GUI backends (eg, a PS backend).
2603+
Return None for non-GUI backends (e.g., a PS backend).
26042604
"""
26052605
return 'image'
26062606

26072607
def set_window_title(self, title):
26082608
"""
26092609
Set the title text of the window containing the figure. Note that
2610-
this has no effect for non-GUI backends (eg, a PS backend).
2610+
this has no effect for non-GUI backends (e.g., a PS backend).
26112611
"""
26122612
pass
26132613

lib/matplotlib/backends/backend_template.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def new_gc(self):
131131
return GraphicsContextTemplate()
132132

133133
def points_to_pixels(self, points):
134-
# if backend doesn't have dpi, eg, postscript or svg
134+
# if backend doesn't have dpi, e.g., postscript or svg
135135
return points
136136
# elif backend assumes a value for pixels_per_inch
137137
#return points/72.0 * self.dpi.get() * pixels_per_inch/72.0
@@ -156,7 +156,7 @@ class GraphicsContextTemplate(GraphicsContextBase):
156156
methods.
157157
158158
The base GraphicsContext stores colors as a RGB tuple on the unit
159-
interval, eg, (0.5, 0.0, 1.0). You may need to map this to colors
159+
interval, e.g., (0.5, 0.0, 1.0). You may need to map this to colors
160160
appropriate for your backend.
161161
"""
162162
pass

lib/matplotlib/backends/backend_wx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ class GraphicsContextWx(GraphicsContextBase):
466466
bitmap object that is passed in.
467467
468468
The base GraphicsContext stores colors as a RGB tuple on the unit
469-
interval, eg, (0.5, 0.0, 1.0). wxPython uses an int interval, but
469+
interval, e.g., (0.5, 0.0, 1.0). wxPython uses an int interval, but
470470
since wxPython colour management is rather simple, I have not chosen
471471
to implement a separate colour manager class.
472472
"""

lib/matplotlib/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def get_rotation(rotation):
8383
linespacing float
8484
lod [True | False]
8585
multialignment ['left' | 'right' | 'center' ]
86-
name or fontname string eg,
86+
name or fontname string e.g.,
8787
['Sans' | 'Courier' | 'Helvetica' ...]
8888
position (x,y)
8989
rotation [ angle in degrees 'vertical' | 'horizontal'

src/_image.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ char Image::set_interpolation__doc__[] =
685685
"set_interpolation(scheme)\n"
686686
"\n"
687687
"Set the interpolation scheme to one of the module constants, "
688-
"eg, image.NEAREST, image.BILINEAR, etc..."
688+
"e.g., image.NEAREST, image.BILINEAR, etc..."
689689
;
690690

691691
Py::Object
@@ -721,7 +721,7 @@ char Image::set_aspect__doc__[] =
721721
"set_aspect(scheme)\n"
722722
"\n"
723723
"Set the aspect ration to one of the image module constant."
724-
"eg, one of image.ASPECT_PRESERVE, image.ASPECT_FREE"
724+
"e.g., one of image.ASPECT_PRESERVE, image.ASPECT_FREE"
725725
;
726726
Py::Object
727727
Image::set_aspect(const Py::Tuple& args)

src/ft2font.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1587,7 +1587,7 @@ char FT2Font::draw_glyph_to_bitmap__doc__[] =
15871587
"\n"
15881588
"If you want automatic layout, use set_text in combinations with\n"
15891589
"draw_glyphs_to_bitmap. This function is intended for people who\n"
1590-
"want to render individual glyphs at precise locations, eg, a\n"
1590+
"want to render individual glyphs at precise locations, e.g., a\n"
15911591
"a glyph returned by load_char\n";
15921592

15931593
Py::Object

0 commit comments

Comments
 (0)