Skip to content

Commit

Permalink
eg (without a comma) to e.g.,
Browse files Browse the repository at this point in the history
Used:

```bash
find * -type f -exec sed -i 's/\beg\b/e.g.,/g' {} \;
```
  • Loading branch information
yuvallanger committed Nov 1, 2014
1 parent 274af80 commit ef80b70
Show file tree
Hide file tree
Showing 54 changed files with 112 additions and 112 deletions.
2 changes: 1 addition & 1 deletion doc/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ documentation. All of the documentation is written using sphinx, a
python documentation system built on top of ReST. This directory contains


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

* devel - documentation for matplotlib developers
Expand Down
12 changes: 6 additions & 6 deletions doc/api/api_changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1305,7 +1305,7 @@ Changes for 0.90.1
units.ConversionInterface.tickers renamed to
units.ConversionInterface.axisinfo and it now returns a
units.AxisInfo object rather than a tuple. This will make it
easier to add axis info functionality (eg I added a default label
easier to add axis info functionality (e.g., I added a default label
on this iteration) w/o having to change the tuple length and hence
the API of the client code every time new functionality is added.
Also, units.ConversionInterface.convert_to_value is now simply
Expand Down Expand Up @@ -1790,7 +1790,7 @@ Changes for 0.71
pylab still imports most of the symbols from Numerix, MLab, fft,
etc, but is more cautious. For names that clash with python names
(min, max, sum), pylab keeps the builtins and provides the numeric
versions with an a* prefix, eg (amin, amax, asum)
versions with an a* prefix, e.g., (amin, amax, asum)

Changes for 0.70
================
Expand Down Expand Up @@ -1937,7 +1937,7 @@ pcolor_classic and scatter_classic.

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

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

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

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

Expand All @@ -2236,7 +2236,7 @@ Changes for 0.42

* matplotlib.matlab._get_current_fig_manager renamed to
matplotlib.matlab.get_current_fig_manager to allow user access to
the GUI window attribute, eg figManager.window for GTK and
the GUI window attribute, e.g., figManager.window for GTK and
figManager.frame for wx

Changes for 0.40
Expand Down
6 changes: 3 additions & 3 deletions doc/devel/documenting_mpl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ So we can include plots from the examples dir using the symlink::


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

.. _internal-section-refs:
Expand All @@ -401,7 +401,7 @@ Internal section references
===========================

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

.. _howto-webapp:

Expand Down Expand Up @@ -429,7 +429,7 @@ Section names, etc
==================

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

Inheritance diagrams
Expand Down
2 changes: 1 addition & 1 deletion doc/devel/license.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ distributing L/GPL code through an separate channel, possibly a
toolkit. If you include code, make sure you include a copy of that
code's license in the license directory if the code's license requires
you to distribute the license with it. Non-BSD compatible licenses
are acceptable in matplotlib toolkits (eg basemap), but make sure you
are acceptable in matplotlib toolkits (e.g., basemap), but make sure you
clearly state the licenses you are using.

Why BSD compatible?
Expand Down
2 changes: 1 addition & 1 deletion doc/devel/release_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Testing
* Run :file:`unit/memleak_hawaii3.py` and make sure there are no
memory leaks

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

* remove font cache and tex cache from :file:`.matplotlib` and test
with and without cache on some example script
Expand Down
14 changes: 7 additions & 7 deletions doc/faq/howto_faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Find all objects in a figure of a certain type
Every matplotlib artist (see :ref:`artist-tutorial`) has a method
called :meth:`~matplotlib.artist.Artist.findobj` that can be used to
recursively search the artist for any artists it may contain that meet
some criteria (eg match all :class:`~matplotlib.lines.Line2D`
some criteria (e.g., match all :class:`~matplotlib.lines.Line2D`
instances or match some arbitrary filter function). For example, the
following snippet finds every object in the figure which has a
`set_color` property and makes the object blue::
Expand Down Expand Up @@ -63,7 +63,7 @@ The :meth:`~matplotlib.pyplot.savefig` command has a keyword argument
backgrounds transparent when saving, but will not affect the displayed
image on the screen.

If you need finer grained control, eg you do not want full transparency
If you need finer grained control, e.g., you do not want full transparency
or you want to affect the screen displayed version as well, you can set
the alpha properties directly. The figure has a
:class:`~matplotlib.patches.Rectangle` instance called *patch*
Expand Down Expand Up @@ -194,7 +194,7 @@ this chicken and egg problem is to wait until the figure is draw by
connecting
(:meth:`~matplotlib.backend_bases.FigureCanvasBase.mpl_connect`) to the
"on_draw" signal (:class:`~matplotlib.backend_bases.DrawEvent`) and
get the window extent there, and then do something with it, eg move
get the window extent there, and then do something with it, e.g., move
the left of the canvas over; see :ref:`event-handling-tutorial`.

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

When plotting time series, eg financial time series, one often wants
to leave out days on which there is no data, eg weekends. By passing
When plotting time series, e.g., financial time series, one often wants
to leave out days on which there is no data, e.g., weekends. By passing
in dates on the x-xaxis, you get large horizontal gaps on periods when
there is not data. The solution is to pass in some proxy x-data, eg
there is not data. The solution is to pass in some proxy x-data, e.g.,
evenly sampled indices, and then use a custom formatter to format
these as dates. The example below shows how to use an 'index formatter'
to achieve the desired plot::
Expand Down Expand Up @@ -559,7 +559,7 @@ at the end of the page in the sidebar (or `here
The sphinx website is a good resource for learning sphinx, but we have
put together a cheat-sheet at :ref:`documenting-matplotlib` which
shows you how to get started, and outlines the matplotlib conventions
and extensions, eg for including plots directly from external code in
and extensions, e.g., for including plots directly from external code in
your documents.

Once your documentation contributions are working (and hopefully
Expand Down
2 changes: 1 addition & 1 deletion doc/faq/installing_faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ Standalone binary installers for Windows
If you have already installed Python and numpy, you can use one of the
matplotlib binary installers for windows -- you can get these from the
`download <http://matplotlib.org/downloads.html>`_ site. Chose the files with
an ``.exe`` extension that match your version of Python (eg ``py2.7`` if you
an ``.exe`` extension that match your version of Python (e.g., ``py2.7`` if you
installed Python 2.7). If you haven't already installed Python, you can get
the official version from the `Python web site
<http://python.org/download/>`_.
2 changes: 1 addition & 1 deletion doc/faq/usage_faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ from the canvas (the place where the drawing goes). The canonical
renderer for user interfaces is ``Agg`` which uses the `Anti-Grain
Geometry`_ C++ library to make a raster (pixel) image of the figure.
All of the user interfaces except ``macosx`` can be used with
agg rendering, eg
agg rendering, e.g.,
``WXAgg``, ``GTKAgg``, ``QT4Agg``, ``TkAgg``. In
addition, some of the user interfaces support other rendering engines.
For example, with GTK, you can also select GDK rendering (backend
Expand Down
2 changes: 1 addition & 1 deletion doc/users/artists.rst
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ set_major_formatter)
====================== =========================================================
Accessor method Description
====================== =========================================================
get_scale The scale of the axis, eg 'log' or 'linear'
get_scale The scale of the axis, e.g., 'log' or 'linear'
get_view_interval The interval instance of the axis view limits
get_data_interval The interval instance of the axis data limits
get_gridlines A list of grid lines for the Axis
Expand Down
8 changes: 4 additions & 4 deletions doc/users/event_handling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ Object picking
==============

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

``function``
Expand Down Expand Up @@ -457,7 +457,7 @@ your callback is always fired with two attributes:

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

Simple picking example
Expand Down
2 changes: 1 addition & 1 deletion doc/users/license.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Matplotlib only uses BSD compatible code, and its license is based on
the `PSF <http://www.python.org/psf/license>`_ license. See the Open
Source Initiative `licenses page
<http://www.opensource.org/licenses>`_ for details on individual
licenses. Non-BSD compatible licenses (eg LGPL) are acceptable in
licenses. Non-BSD compatible licenses (e.g., LGPL) are acceptable in
matplotlib toolkits. For a discussion of the motivations behind the
licencing choice, see :ref:`license-discussion`.

Expand Down
4 changes: 2 additions & 2 deletions doc/users/path_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@ All of the simple patch primitives in matplotlib, Rectangle, Circle,
Polygon, etc, are implemented with simple path. Plotting functions
like :meth:`~matplotlib.axes.Axes.hist` and
:meth:`~matplotlib.axes.Axes.bar`, which create a number of
primitives, eg a bunch of Rectangles, can usually be implemented more
primitives, e.g., a bunch of Rectangles, can usually be implemented more
efficiently using a compound path. The reason ``bar`` creates a list
of rectangles and not a compound path is largely historical: the
:class:`~matplotlib.path.Path` code is comparatively new and ``bar``
predates it. While we could change it now, it would break old code,
so here we will cover how to create compound paths, replacing the
functionality in bar, in case you need to do so in your own code for
efficiency reasons, eg you are creating an animated bar plot.
efficiency reasons, e.g., you are creating an animated bar plot.

We will make the histogram chart by creating a series of rectangles
for each histogram bar: the rectangle width is the bin width and the
Expand Down
2 changes: 1 addition & 1 deletion doc/users/pyplot_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ several ways to set line properties


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

Expand Down
8 changes: 4 additions & 4 deletions doc/users/recipes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ figures and overcome some matplotlib warts.
Sharing axis limits and views
=============================

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

At its most basic level, ``fill_between`` can be use to enhance a
Expand Down
2 changes: 1 addition & 1 deletion doc/users/text_intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Text introduction
matplotlib has excellent text support, including mathematical
expressions, truetype support for raster and vector outputs, newline
separated text with arbitrary rotations, and unicode support. Because
we embed the fonts directly in the output documents, eg for postscript
we embed the fonts directly in the output documents, e.g., for postscript
or PDF, what you see on the screen is what you get in the hardcopy.
`freetype2 <http://freetype.sourceforge.net/index2.html>`_ support
produces very nice, antialiased fonts, that look good even at small
Expand Down
4 changes: 2 additions & 2 deletions doc/users/text_props.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Text properties and layout

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

========================== ==============================================================================
Expand All @@ -28,7 +28,7 @@ name or fontname string e.g., [``'Sans'`` | ``'Courier'`` | ``'Helvetica'``
picker [None|float|boolean|callable]
position (x,y)
rotation [ angle in degrees ``'vertical'`` | ``'horizontal'``
size or fontsize [ size in points | relative size eg ``'smaller'``, ``'x-large'`` ]
size or fontsize [ size in points | relative size, e.g., ``'smaller'``, ``'x-large'`` ]
style or fontstyle [ ``'normal'`` | ``'italic'`` | ``'oblique'``]
text string or anything printable with '%s' conversion
transform a matplotlib.transform transformation instance
Expand Down
2 changes: 1 addition & 1 deletion doc/users/transforms_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ Using offset transforms to create a shadow effect
=================================================

One use of transformations is to create a new transformation that is
offset from another transformation, eg to place one object shifted a
offset from another transformation, e.g., to place one object shifted a
bit relative to another object. Typically you want the shift to be in
some physical dimension, like points or inches rather than in data
coordinates, so that the shift effect is constant at different zoom
Expand Down
2 changes: 1 addition & 1 deletion doc/users/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1501,7 +1501,7 @@ Here are the 0.98.4 notes from the CHANGELOG::

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 setp and getp. Having all
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 hardcopy and other use. The ArtistInspector
Expand Down
4 changes: 2 additions & 2 deletions examples/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Probably the most common way people use matplotlib is with the
procedural interface, which follows the matlab/IDL/mathematica
approach of using simple procedures like "plot" or "title" to modify
the current figure. These examples are included in the "pylab_examples"
directory. If you want to write more robust scripts, eg for
directory. If you want to write more robust scripts, e.g., for
production use or in a web application server, you will probably want
to use the matplotlib API for full control. These examples are found
in the "api" directory. Below is a brief description of the different
Expand Down Expand Up @@ -41,7 +41,7 @@ directories found here:

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

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

* widgets - Examples using interactive widgets
2 changes: 1 addition & 1 deletion examples/api/date_index_formatter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
When plotting time series, eg financial time series, one often wants
When plotting time series, e.g., financial time series, one often wants
to leave out days on which there is no data, eh weekends. The example
below shows how to use an 'index formatter' to achieve the desired plot
"""
Expand Down
4 changes: 2 additions & 2 deletions examples/api/font_family_rc.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"""
You can explicitly set which font family is picked up for a given font
style (eg 'serif', 'sans-serif', or 'monospace').
style (e.g., 'serif', 'sans-serif', or 'monospace').
In the example below, we only allow one font family (Tahoma) for the
san-serif font style. You the default family with the font.family rc
param, eg::
param, e.g.,::
rcParams['font.family'] = 'sans-serif'
Expand Down
4 changes: 2 additions & 2 deletions examples/pylab_examples/accented_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
The following accents are provided: \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 make an o umlaut you do
\ddot{o}. The shortcuts are also provided, eg: \"o \'e \`e \~n \.x
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, e.g.,: \"o \'e \`e \~n \.x
\^y
"""
Expand Down
Loading

0 comments on commit ef80b70

Please sign in to comment.