Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5ec4079

Browse files
committed
Merge pull request #1602 from kdavies4/1600-squashed
Fixed typos in docs (squashed version of #1600)
2 parents dc1d0ee + 15b97b2 commit 5ec4079

17 files changed

+53
-55
lines changed

doc/api/api_changes.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Changes in 1.2.x
7979
projection = kwargs.pop('projection', None)
8080
if ispolar:
8181
if projection is not None and projection != 'polar':
82-
raise ValuError('polar and projection args are inconsistent')
82+
raise ValueError('polar and projection args are inconsistent')
8383
projection = 'polar'
8484
ax = projection_factory(projection, self, rect, **kwargs)
8585
key = self._make_key(*args, **kwargs)
@@ -807,7 +807,7 @@ Changes for 0.91.0
807807

808808
* Changed :func:`cbook.reversed` so it yields a tuple rather than a
809809
(index, tuple). This agrees with the python reversed builtin,
810-
and cbook only defines reversed if python doesnt provide the
810+
and cbook only defines reversed if python doesn't provide the
811811
builtin.
812812

813813
* Made skiprows=1 the default on :func:`csv2rec`
@@ -892,13 +892,13 @@ Changes for 0.90.1
892892
units.AxisInfo object rather than a tuple. This will make it
893893
easier to add axis info functionality (eg I added a default label
894894
on this iteration) w/o having to change the tuple length and hence
895-
the API of the client code everytime new functionality is added.
895+
the API of the client code every time new functionality is added.
896896
Also, units.ConversionInterface.convert_to_value is now simply
897897
named units.ConversionInterface.convert.
898898

899899
Axes.errorbar uses Axes.vlines and Axes.hlines to draw its error
900900
limits int he vertical and horizontal direction. As you'll see
901-
in the changes below, these funcs now return a LineCollection
901+
in the changes below, these functions now return a LineCollection
902902
rather than a list of lines. The new return signature for
903903
errorbar is ylins, caplines, errorcollections where
904904
errorcollections is a xerrcollection, yerrcollection
@@ -983,7 +983,7 @@ Changes for 0.87.7
983983
markeredgecolor and markerfacecolor cannot be configured in
984984
matplotlibrc any more. Instead, markers are generally colored
985985
automatically based on the color of the line, unless marker colors
986-
are explicitely set as kwargs - NN
986+
are explicitly set as kwargs - NN
987987

988988
Changed default comment character for load to '#' - JDH
989989

@@ -1198,7 +1198,7 @@ Changes for 0.82
11981198

11991199
I see that hist uses the linspace function to create the bins
12001200
and then uses searchsorted to put the values in their correct
1201-
bin. Thats all good but I am confused over the use of linspace
1201+
bin. That's all good but I am confused over the use of linspace
12021202
for the bin creation. I wouldn't have thought that it does
12031203
what is needed, to quote the docstring it creates a "Linear
12041204
spaced array from min to max". For it to work correctly
@@ -1394,7 +1394,7 @@ Changes for 0.65.1
13941394

13951395
removed add_axes and add_subplot from backend_bases. Use
13961396
figure.add_axes and add_subplot instead. The figure now manages the
1397-
current axes with gca and sca for get and set current axe. If you
1397+
current axes with gca and sca for get and set current axes. If you
13981398
have code you are porting which called, eg, figmanager.add_axes, you
13991399
can now simply do figmanager.canvas.figure.add_axes.
14001400

@@ -1462,7 +1462,7 @@ Changes for 0.61
14621462

14631463
canvas.connect is now deprecated for event handling. use
14641464
mpl_connect and mpl_disconnect instead. The callback signature is
1465-
func(event) rather than func(widget, evet)
1465+
func(event) rather than func(widget, event)
14661466

14671467
Changes for 0.60
14681468
================
@@ -1626,7 +1626,7 @@ Object constructors
16261626
You no longer pass the bbox, dpi, or transforms to the various
16271627
Artist constructors. The old way or creating lines and rectangles
16281628
was cumbersome because you had to pass so many attributes to the
1629-
Line2D and Rectangle classes not related directly to the gemoetry
1629+
Line2D and Rectangle classes not related directly to the geometry
16301630
and properties of the object. Now default values are added to the
16311631
object when you call axes.add_line or axes.add_patch, so they are
16321632
hidden from the user.
@@ -1655,18 +1655,18 @@ Transformations
16551655

16561656
The entire transformation architecture has been rewritten.
16571657
Previously the x and y transformations where stored in the xaxis and
1658-
yaxis insstances. The problem with this approach is it only allows
1658+
yaxis instances. The problem with this approach is it only allows
16591659
for separable transforms (where the x and y transformations don't
16601660
depend on one another). But for cases like polar, they do. Now
16611661
transformations operate on x,y together. There is a new base class
16621662
matplotlib.transforms.Transformation and two concrete
1663-
implemetations, matplotlib.transforms.SeparableTransformation and
1663+
implementations, matplotlib.transforms.SeparableTransformation and
16641664
matplotlib.transforms.Affine. The SeparableTransformation is
16651665
constructed with the bounding box of the input (this determines the
16661666
rectangular coordinate system of the input, ie the x and y view
1667-
limits), the bounding box of the display, and possibily nonlinear
1667+
limits), the bounding box of the display, and possibly nonlinear
16681668
transformations of x and y. The 2 most frequently used
1669-
transformations, data cordinates -> display and axes coordinates ->
1669+
transformations, data coordinates -> display and axes coordinates ->
16701670
display are available as ax.transData and ax.transAxes. See
16711671
alignment_demo.py which uses axes coords.
16721672

@@ -1796,7 +1796,7 @@ Changes for 0.42
17961796

17971797
* backend_bases.AxisTextBase is now text.Text module
17981798

1799-
* All the erase and reset functionality removed frmo AxisText - not
1799+
* All the erase and reset functionality removed from AxisText - not
18001800
needed with double buffered drawing. Ditto with state change.
18011801
Text instances have a get_prop_tup method that returns a hashable
18021802
tuple of text properties which you can use to see if text props

doc/devel/documenting_mpl.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ working with Sphinx in general. Here are a few additional things to keep in mind
139139
``:file:`` directive.
140140

141141
* Function arguments and keywords should be referred to using the *emphasis*
142-
role. This will keep matplotlib's documentation consistant with Python's
142+
role. This will keep matplotlib's documentation consistent with Python's
143143
documentation::
144144

145145
Here is a description of *argument*
@@ -401,7 +401,7 @@ Internal section references
401401
===========================
402402

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

406406
.. _howto-webapp:
407407

@@ -411,7 +411,7 @@ and refer to it using the standard reference syntax::
411411

412412
Keep in mind that we may want to reorganize the contents later, so
413413
let's avoid top level names in references like ``user`` or ``devel``
414-
or ``faq`` unless necesssary, because for example the FAQ "what is a
414+
or ``faq`` unless necessary, because for example the FAQ "what is a
415415
backend?" could later become part of the users guide, so the label::
416416

417417
.. _what-is-a-backend
@@ -464,7 +464,7 @@ Emacs helpers
464464

465465
There is an emacs mode `rst.el
466466
<http://docutils.sourceforge.net/tools/editors/emacs/rst.el>`_ which
467-
automates many important ReST tasks like building and updateing
467+
automates many important ReST tasks like building and updating
468468
table-of-contents, and promoting or demoting section headings. Here
469469
is the basic ``.emacs`` configuration::
470470

doc/devel/release_guide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _release-guide:
22

33
*************************
4-
Doing a matplolib release
4+
Doing a matplotlib release
55
*************************
66

77
A guide for developers who are doing a matplotlib release

doc/faq/howto_faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ and :ref:`what-is-a-backend`).
496496
Therefore, multiple calls to ``show`` are now allowed.
497497

498498
Having ``show`` block further execution of the script or the python
499-
interperator depends on whether matplotlib is set for interactive mode
499+
interpreter depends on whether matplotlib is set for interactive mode
500500
or not. In non-interactive mode (the default setting), execution is paused
501501
until the last figure window is closed. In interactive mode, the execution
502502
is not paused, which allows you to create additional figures (but the script

doc/glossary/index.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Glossary
6363
PS
6464
Postscript (`PS <http://en.wikipedia.org/wiki/PostScript>`_) is a
6565
vector graphics ASCII text language widely used in printers and
66-
publishing. Postscript was developerd by adobe systems and is
66+
publishing. Postscript was developed by adobe systems and is
6767
starting to show its age: for example is does not have an alpha
6868
channel. PDF was designed in part as a next-generation document
6969
format to replace postscript
@@ -81,7 +81,7 @@ Glossary
8181

8282
pyqt
8383
`pyqt <http://wiki.python.org/moin/PyQt>`_ provides python
84-
wrappers for the :term:`Qt` widgets library and is requied by
84+
wrappers for the :term:`Qt` widgets library and is required by
8585
the matplotlib QtAgg and Qt4Agg backends. Widely used on linux
8686
and windows; many linux distributions package this as
8787
'python-qt3' or 'python-qt4'.
@@ -155,4 +155,3 @@ Glossary
155155
tools library for GTK, MS Windows, and MacOS. It uses native
156156
widgets for each operating system, so applications will have the
157157
look-and-feel that users on that operating system expect.
158-

doc/users/annotations_guide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ more control, it supports a few other options.
324324
annotate("Test", xy=(0.5, 1), xycoords=("data", "axes fraction"))
325325

326326
0.5 is in data coordinate, and 1 is in normalized axes coordinate.
327-
You may use an atist or transform as with a tuple. For example,
327+
You may use an artist or transform as with a tuple. For example,
328328

329329
.. plot:: users/plotting/examples/annotate_simple_coord02.py
330330
:include-source:

doc/users/credits.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Baptiste Carvello
121121

122122
Jeffrey Whitaker
123123
at `NOAA <http://www.boulder.noaa.gov>`_ wrote the
124-
:ref:`toolkit_basemap` tookit
124+
:ref:`toolkit_basemap` toolkit
125125

126126
Sigve Tjoraand, Ted Drain, James Evans
127127
and colleagues at the `JPL <http://www.jpl.nasa.gov>`_ collaborated
@@ -163,7 +163,7 @@ Jouni K. Seppänen
163163
fixes to the code, to tex support and to the get_sample_data handler
164164

165165
Paul Kienzle
166-
improved the picking infrastruture for interactive plots, and with
166+
improved the picking infrastructure for interactive plots, and with
167167
Alex Mont contributed fast rendering code for quadrilateral meshes.
168168

169169
Michael Droettboom

doc/users/github_stats.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ Pull Requests (123):
162162
* :ghpull:`1074`: Added broadcasting support in some mplot3d methods
163163
* :ghpull:`1064`: Locator interface
164164
* :ghpull:`850`: Added tripcolor triangle-centred colour values.
165-
* :ghpull:`1093`: Exposed the callback id for the default key press handler so that it can be easily diabled. Fixes #215.
165+
* :ghpull:`1093`: Exposed the callback id for the default key press handler so that it can be easily disabled. Fixes #215.
166166
* :ghpull:`1065`: fixed conversion from pt to inch in tight_layout
167167
* :ghpull:`1082`: doc: in pcolormesh docstring, say what it does.
168168
* :ghpull:`1078`: doc: note that IDLE doesn't work with interactive mode.
@@ -192,7 +192,7 @@ Pull Requests (123):
192192
* :ghpull:`1002`: Fixed potential overflow exception in the lines.contains() method
193193
* :ghpull:`1025`: Timers
194194
* :ghpull:`989`: Animation subprocess bug
195-
* :ghpull:`898`: Added warnings for easily confusible subplot/subplots invokations
195+
* :ghpull:`898`: Added warnings for easily confusable subplot/subplots invocations
196196
* :ghpull:`963`: Add detection of file extension for file-like objects
197197
* :ghpull:`973`: Fix sankey.py pep8 and py3 compatibility
198198
* :ghpull:`972`: Force closing PIL image files
@@ -244,7 +244,7 @@ Issues (226):
244244
* :ghissue:`557`: Crash during date axis setup
245245
* :ghissue:`600`: errorbar(): kwarg 'markevery' not working as expected.
246246
* :ghissue:`174`: Memory leak in example simple_idle_wx.py
247-
* :ghissue:`232`: format in plot_direcitive sphinx>=1.0.6 compatible patch
247+
* :ghissue:`232`: format in plot_directive sphinx>=1.0.6 compatible patch
248248
* :ghissue:`1162`: FIX nose.tools.assert_is is only supported with python2.7
249249
* :ghissue:`1165`: tight_layout fails on twinx, twiny
250250
* :ghissue:`803`: Return arrow collection as 2nd argument of streamplot.
@@ -346,7 +346,7 @@ Issues (226):
346346
* :ghissue:`850`: Added tripcolor triangle-centred colour values.
347347
* :ghissue:`1059`: Matplotlib figure window freezes during interactive mode
348348
* :ghissue:`215`: skipping mpl-axes-interaction during key_press_event\'s
349-
* :ghissue:`1093`: Exposed the callback id for the default key press handler so that it can be easily diabled. Fixes #215.
349+
* :ghissue:`1093`: Exposed the callback id for the default key press handler so that it can be easily disabled. Fixes #215.
350350
* :ghissue:`909`: Log Formatter for tick labels can't handle non-integer base
351351
* :ghissue:`1065`: fixed conversion from pt to inch in tight_layout
352352
* :ghissue:`1086`: Problem with subplot / matplotlib.dates interaction
@@ -403,7 +403,7 @@ Issues (226):
403403
* :ghissue:`1002`: Fixed potential overflow exception in the lines.contains() method
404404
* :ghissue:`1025`: Timers
405405
* :ghissue:`989`: Animation subprocess bug
406-
* :ghissue:`898`: Added warnings for easily confusible subplot/subplots invokations
406+
* :ghissue:`898`: Added warnings for easily confusable subplot/subplots invocations
407407
* :ghissue:`963`: Add detection of file extension for file-like objects
408408
* :ghissue:`973`: Fix sankey.py pep8 and py3 compatibility
409409
* :ghissue:`972`: Force closing PIL image files

doc/users/legend_guide.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ used as text labels. If label attribute is empty string or starts with
5151
Therefore, plots drawn by some *pyplot* commands are not supported by
5252
legend. For example, :func:`~matplotlib.pyplot.fill_between` creates
5353
:class:`~matplotlib.collections.PolyCollection` that is not
54-
supported. Also support is limted for some commands that creat
54+
supported. Also support is limited for some commands that create
5555
multiple artists. For example, :func:`~matplotlib.pyplot.errorbar`
5656
creates multiples :class:`~matplotlib.lines.Line2D` instances.
5757

@@ -253,7 +253,7 @@ For each *p_i*, matplotlib
253253
in the handler_map
254254

255255

256-
Unless specified, the defaul handler_map is used. Below is a partial
256+
Unless specified, the default handler_map is used. Below is a partial
257257
list of key-handler pairs included in the default handler map.
258258

259259
* Line2D : legend_handler.HandlerLine2D()
@@ -281,7 +281,7 @@ instances (p1 and p2). ::
281281
In the above example, only *p1* will be handled by *my_handler*, while
282282
others will be handled by default handlers.
283283

284-
The curent default handler_map has handlers for errorbar and bar
284+
The current default handler_map has handlers for errorbar and bar
285285
plots. Also, it includes an entry for `tuple` which is mapped to
286286
`HandlerTuple`. It simply plots over all the handles for items in the
287287
given tuple. For example,
@@ -310,7 +310,7 @@ Handler can be any callable object with following signature. ::
310310

311311
Where *legend* is the legend itself, *orig_handle* is the original
312312
plot (*p_i* in the above example), *fontsize* is the fontsize in
313-
pixles, and *handlebox* is a OffsetBox instance. Within the call, you
313+
pixels, and *handlebox* is a OffsetBox instance. Within the call, you
314314
create relevant artists (using relevant properties from the *legend*
315315
and/or *orig_handle*) and add them into the handlebox. The artists
316316
needs to be scaled according to the fontsize (note that the size is in

doc/users/mathtext.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ provides a ``usetex`` option for those who do want to call out to TeX
1414
to generate their text (see :ref:`usetex-tutorial`).
1515

1616
Any text element can use math text. You should use raw strings
17-
(preceed the quotes with an ``'r'``), and surround the math text with
17+
(precede the quotes with an ``'r'``), and surround the math text with
1818
dollar signs ($), as in TeX. Regular text and mathtext can be
1919
interleaved within the same string. Mathtext can use the Computer
2020
Modern fonts (from (La)TeX), `STIX <http://www.aip.org/stixfonts/>`_

doc/users/pgf.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Rc parameters that control the behavior of the pgf backend:
4545

4646
.. note::
4747

48-
TeX defines a set of secial characters, such as::
48+
TeX defines a set of special characters, such as::
4949

5050
# $ % & ~ _ ^ \ { }
5151

doc/users/pyplot_tutorial.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ you can write a TeX expression surrounded by dollar signs::
248248

249249
plt.title(r'$\sigma_i=15$')
250250

251-
The ``r`` preceeding the title string is important -- it signifies
252-
that the string is a *raw* string and not to treate backslashes and
251+
The ``r`` preceding the title string is important -- it signifies
252+
that the string is a *raw* string and not to treat backslashes and
253253
python escapes. matplotlib has a built-in TeX expression parser and
254254
layout engine, and ships its own math fonts -- for details see
255255
:ref:`mathtext-tutorial`. Thus you can use mathematical text across platforms
@@ -280,4 +280,3 @@ variety of other coordinate systems one can choose -- see
280280
:ref:`annotations-tutorial` and :ref:`plotting-guide-annotation` for
281281
details. More examples can be found in
282282
:ref:`pylab_examples-annotation_demo`.
283-

doc/users/recipes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ the boolean mask is True. In the example below, we simulate a single
258258
random walker and compute the analytic mean and standard deviation of
259259
the population positions. The population mean is shown as the black
260260
dashed line, and the plus/minus one sigma deviation from the mean is
261-
showsn as the yellow filled region. We use the where mask
261+
shown as the yellow filled region. We use the where mask
262262
``X>upper_bound`` to find the region where the walker is above the one
263263
sigma boundary, and shade that region blue.
264264

@@ -358,7 +358,7 @@ argument takes a dictionary with keys that are Patch properties.
358358
textstr = '$\mu=%.2f$\n$\mathrm{median}=%.2f$\n$\sigma=%.2f$'%(mu, median, sigma)
359359

360360
ax.hist(x, 50)
361-
# these are matplotlib.patch.Patch properies
361+
# these are matplotlib.patch.Patch properties
362362
props = dict(boxstyle='round', facecolor='wheat', alpha=0.5)
363363

364364
# place a text box in upper left in axes coords

doc/users/screenshots.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ histograms and will return the bin counts or probabilities
4040
Path demo
4141
=========
4242

43-
You can add aribitrary paths in matplotlib as of release 0.98. See
43+
You can add arbitrary paths in matplotlib as of release 0.98. See
4444
the :mod:`matplotlib.path`.
4545

4646
.. plot:: mpl_examples/api/path_patch_demo.py

doc/users/text_intro.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ interface
5151
in the API.
5252

5353
All of these functions create and return a
54-
:func:`matplotlib.text.Text` instance, which can bew configured with a
54+
:func:`matplotlib.text.Text` instance, which can be configured with a
5555
variety of font and other properties. The example below shows all of
5656
these commands in action.
5757

doc/users/tight_layout_guide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ Colorbar
287287
If you create a colorbar with the :func:`~matplotlib.pyplot.colorbar`
288288
command, the created colorbar is an instance of Axes, *not* Subplot, so
289289
tight_layout does not work. With Matplotlib v1.1, you may create a
290-
colobar as a subplot using the gridspec.
290+
colorbar as a subplot using the gridspec.
291291

292292
.. plot::
293293
:include-source:

0 commit comments

Comments
 (0)