From 3a8d7f0987d8e882e4dc8d2dcea59068e8986365 Mon Sep 17 00:00:00 2001
From: Cimarron Mittelsteadt
Date: Tue, 16 Apr 2013 18:23:39 -0700
Subject: [PATCH 1/3] Normalize all 'e.g.' instances. Addresses issue #1423.
---
CHANGELOG | 46 +++++++++----------
doc/_templates/search.html | 2 +-
doc/api/api_changes.rst | 18 ++++----
doc/devel/documenting_mpl.rst | 10 ++--
doc/devel/gitwash/development_workflow.rst | 2 +-
doc/devel/testing.rst | 8 ++--
doc/faq/howto_faq.rst | 4 +-
doc/faq/troubleshooting_faq.rst | 2 +-
doc/mpl_toolkits/axes_grid/users/overview.rst | 2 +-
doc/sphinxext/gen_rst.py | 2 +-
doc/users/annotations_intro.rst | 2 +-
doc/users/artists.rst | 14 +++---
doc/users/event_handling.rst | 2 +-
doc/users/mathtext.rst | 2 +-
doc/users/recipes.rst | 2 +-
doc/users/shell.rst | 2 +-
doc/users/transforms_tutorial.rst | 6 +--
doc/users/whats_new.rst | 6 +--
examples/api/sankey_demo_old.py | 2 +-
examples/pylab_examples/barchart_demo2.py | 2 +-
examples/pylab_examples/finance_demo.py | 4 +-
examples/pylab_examples/image_interp.py | 2 +-
examples/pylab_examples/polar_demo.py | 2 +-
examples/pylab_examples/set_and_get.py | 2 +-
examples/user_interfaces/fourier_demo_wx.py | 2 +-
lib/matplotlib/__init__.py | 10 ++--
lib/matplotlib/afm.py | 10 ++--
lib/matplotlib/animation.py | 2 +-
lib/matplotlib/artist.py | 22 ++++-----
lib/matplotlib/axes.py | 36 +++++++--------
lib/matplotlib/backend_bases.py | 2 +-
lib/matplotlib/backends/backend_pdf.py | 8 ++--
lib/matplotlib/backends/backend_tkagg.py | 2 +-
lib/matplotlib/backends/backend_wx.py | 2 +-
.../backends/qt4_editor/formlayout.py | 2 +-
lib/matplotlib/collections.py | 6 +--
lib/matplotlib/colorbar.py | 2 +-
lib/matplotlib/contour.py | 2 +-
lib/matplotlib/dviread.py | 2 +-
lib/matplotlib/figure.py | 6 +--
lib/matplotlib/font_manager.py | 10 ++--
lib/matplotlib/legend.py | 2 +-
lib/matplotlib/lines.py | 4 +-
lib/matplotlib/mathtext.py | 8 ++--
lib/matplotlib/mlab.py | 10 ++--
.../mpl-data/fonts/ttf/RELEASENOTES.TXT | 2 +-
lib/matplotlib/patches.py | 2 +-
lib/matplotlib/projections/polar.py | 2 +-
lib/matplotlib/pyplot.py | 10 ++--
lib/matplotlib/quiver.py | 2 +-
lib/matplotlib/streamplot.py | 2 +-
lib/matplotlib/tests/test_colors.py | 2 +-
lib/matplotlib/text.py | 2 +-
lib/matplotlib/ticker.py | 6 +--
lib/matplotlib/tight_layout.py | 2 +-
lib/matplotlib/tri/triinterpolate.py | 4 +-
lib/matplotlib/tri/triplot.py | 2 +-
lib/matplotlib/tri/trirefine.py | 4 +-
lib/matplotlib/type1font.py | 4 +-
lib/mpl_toolkits/axes_grid/colorbar.py | 2 +-
lib/mpl_toolkits/axes_grid1/axes_divider.py | 2 +-
lib/mpl_toolkits/axes_grid1/colorbar.py | 2 +-
lib/mpl_toolkits/axisartist/floating_axes.py | 2 +-
.../axisartist/grid_helper_curvelinear.py | 2 +-
matplotlibrc.template | 8 ++--
65 files changed, 180 insertions(+), 180 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
index b266df9123d0..05fb51db7762 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1036,7 +1036,7 @@
2009-02-02 Change default resolution on polar plot to 1 - MGD
2009-02-02 Avoid malloc errors in ttconv for fonts that don't have
- e.g. PostName (a version of Tahoma triggered this) - JKS
+ e.g., PostName (a version of Tahoma triggered this) - JKS
2009-01-30 Remove support for pyExcelerator in exceltools -- use xlwt
instead - JDH
@@ -1110,7 +1110,7 @@
(slanting and extending). - JKS
2008-12-29 Fix a bug in pdf usetex support, which occurred if the same
- Type-1 font was used with different encodings, e.g. with
+ Type-1 font was used with different encodings, e.g., with
Minion Pro and MnSymbol. - JKS
2008-12-20 fix the dpi-dependent offset of Shadow. - JJL
@@ -1209,7 +1209,7 @@
2008-12-08 Some of the changes Michael made to improve the output of
the property tables in the rest docs broke of made
- difficult to use some of the interactive doc helpers, eg
+ difficult to use some of the interactive doc helpers, e.g.,
setp and getp. Having all the rest markup in the ipython
shell also confused the docstrings. I added a new rc param
docstring.harcopy, to format the docstrings differently for
@@ -1233,7 +1233,7 @@
2008-12-05 Fixed a bug that the handlelength of the new legend class
set too short when numpoints=1 -JJL
-2008-12-04 Added support for data with units (e.g. dates) to
+2008-12-04 Added support for data with units (e.g., dates) to
Axes.fill_between. -RM
2008-12-04 Added fancybox keyword to legend. Also applied some changes
@@ -1314,7 +1314,7 @@
Tollerud and Jae-Joon Lee. - MM
2008-10-11 Fixed bug in pdf backend: if you pass a file object for
- output instead of a filename, e.g. in a wep app, we now
+ output instead of a filename, e.g., in a wep app, we now
flush the object at the end. - JKS
2008-10-08 Add path simplification support to paths with gaps. - EF
@@ -1527,7 +1527,7 @@
2008-06-20 Added set/get_closed method to Polygon; fixes error
in hist - MM
-2008-06-19 Use relative font sizes (e.g. 'medium' and 'large') in
+2008-06-19 Use relative font sizes (e.g., 'medium' and 'large') in
rcsetup.py and matplotlibrc.template so that text will
be scaled by default when changing rcParams['font.size'] -
EF
@@ -2159,8 +2159,8 @@
2007-07-31 Refactoring of distutils scripts.
- Will not fail on the entire build if an optional Python
- package (e.g. Tkinter) is installed but its development
- headers are not (e.g. tk-devel). Instead, it will
+ package (e.g., Tkinter) is installed but its development
+ headers are not (e.g., tk-devel). Instead, it will
continue to build all other extensions.
- Provide an overview at the top of the output to display
what dependencies and their versions were found, and (by
@@ -2192,7 +2192,7 @@
should be changed to ${\cal R}$. Alternatively, you may
use the new LaTeX-style font commands (\mathcal, \mathrm,
\mathit, \mathtt) which do affect the following group,
- eg. $\mathcal{R}$.
+ e.g., $\mathcal{R}$.
Other new features include:
@@ -2202,10 +2202,10 @@
- Sub/superscripts are less likely to accidentally overlap.
- - Support for sub/superscripts in either order, eg. $x^i_j$
+ - Support for sub/superscripts in either order, e.g., $x^i_j$
and $x_j^i$ are equivalent.
- - Double sub/superscripts (eg. $x_i_j$) are considered
+ - Double sub/superscripts (e.g., $x_i_j$) are considered
ambiguous and raise an exception. Use braces to disambiguate.
- $\frac{x}{y}$ can be used for displaying fractions.
@@ -2468,7 +2468,7 @@
color-setting operations in the pdf backend. The idea is
that you include the resulting file in another program and
set the colors (both stroke and fill color) there, so you
- can use the same pdf file for e.g. a paper and a
+ can use the same pdf file for e.g., a paper and a
presentation and have them in the surrounding color. You
will probably not want to draw figure and axis frames in
that case, since they would be filled in the same color. - JKS
@@ -2557,7 +2557,7 @@
frameowrk. Artists will define their own pick method with
a configurable epsilon tolerance and return pick attrs.
All artists that meet the tolerance threshold will fire a
- PickEvent with artist dependent attrs; eg, a Line2D can set
+ PickEvent with artist dependent attrs; e.g., a Line2D can set
the indices attribute that shows the indices into the line
that are within epsilon of the pick point. See
examples/pick_event_demo.py. The implementation of pick
@@ -2667,7 +2667,7 @@
2006-11-19 Added semi-automatic docstring generation detailing all the
kwargs that functions take using the artist introspection
- tools; eg 'help text now details the scatter kwargs
+ tools; e.g., 'help text now details the scatter kwargs
that control the Text properties - JDH
2006-11-17 Removed obsolete scatter_classic, leaving a stub to
@@ -2957,7 +2957,7 @@
2006-06-16 Added a pointer to parent in figure canvas so you can
access the container with fig.canvas.manager. Useful if
- you want to set the window title, eg in gtk
+ you want to set the window title, e.g., in gtk
fig.canvas.manager.window.set_title, though a GUI neutral
method would be preferable JDH
@@ -3426,7 +3426,7 @@
2005-12-03 Modified scipy patch to support Numeric, scipy and numarray
Some work remains to be done because some of the scipy
- imports are broken if only the core is installed. Eg
+ imports are broken if only the core is installed. e.g.,
apparently we need from scipy.basic.fftpack import * rather
than from scipy.fftpack import *
@@ -3675,7 +3675,7 @@
2005-07-06 Made HOME/.matplotlib the new config dir where the
matplotlibrc file, the ttf.cache, and the tex.cache live.
The new default filenames in .matplotlib have no leading
- dot and are not hidden. Eg, the new names are matplotlibrc
+ dot and are not hidden. e.g., the new names are matplotlibrc
tex.cache ttffont.cache. This is how ipython does it so it
must be right. If old files are found, a warning is issued
and they are moved to the new location. Also fixed
@@ -3949,7 +3949,7 @@
2005-04-11 Applied a variant of rick's xlim/ylim/axis patch. These
functions now take kwargs to let you selectively alter only
- the min or max if desired. Eg xlim(xmin=2) or
+ the min or max if desired. e.g., xlim(xmin=2) or
axis(ymax=3). They always return the new lim. - JDH
@@ -4078,7 +4078,7 @@
2005-02-23 Added rc param ps.useafm so backend ps can use native afm
fonts or truetype. afme breaks mathtext but causes much
smaller font sizes and may result in images that display
- better in some contexts (eg pdfs incorporated into latex
+ better in some contexts (e.g., pdfs incorporated into latex
docs viewed in acrobat reader). I would like to extend
this approach to allow the user to use truetype only for
mathtext, which should be easy.
@@ -4206,9 +4206,9 @@
2005-01-18 Added accents to mathtext: \hat, \breve, \grave, \bar,
\acute, \tilde, \vec, \dot, \ddot. All of them have the
- same syntax, eg to make an overbar you do \bar{o} or to
+ same syntax, e.g., to make an overbar you do \bar{o} or to
make an o umlaut you do \ddot{o}. The shortcuts are also
- provided, eg: \"o \'e \`e \~n \.x \^y - JDH
+ provided, e.g., \"o \'e \`e \~n \.x \^y - JDH
2005-01-18 Plugged image resize memory leaks - JDH
@@ -4375,7 +4375,7 @@
2004-12-04 Fixed some legend bugs JDH
-2004-11-30 Added over command for oneoff over plots. Eg over(plot, x,
+2004-11-30 Added over command for oneoff over plots. e.g., over(plot, x,
y, lw=2). Works with any plot function.
2004-11-30 Added bbox property to text - JDH
@@ -4551,7 +4551,7 @@
2004-09-17 Added coords formatter attributes. These must be callable,
and return a string for the x or y data. These will be used
to format the x and y data for the coords box. Default is
- the axis major formatter. Eg
+ the axis major formatter. e.g.:
# format the coords message box
def price(x): return '$%1.2f'%x
diff --git a/doc/_templates/search.html b/doc/_templates/search.html
index 83fd18e7d70b..f24c6ab13fd8 100644
--- a/doc/_templates/search.html
+++ b/doc/_templates/search.html
@@ -10,7 +10,7 @@ {{ _('Search') }}
words. Pages containing less words won't appear in the result
list.{% endtrans %} If you want to limit your search to working code examples,
include the keyword "codex" (mnemonic for code example) in your
- search, eg "codex ellipse";
+ search, e.g., "codex ellipse";
see search examples.