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

Skip to content

Commit 7de832c

Browse files
committed
Fix several minor typos in examples.
1 parent 28b8040 commit 7de832c

39 files changed

Lines changed: 55 additions & 55 deletions

doc/mpl_toolkits/axes_grid/figures/simple_axisartist1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
ax.axis["bottom", "top", "right"].set_visible(False)
1111

1212
# make an new axis along the first axis axis (x-axis) which pass
13-
# throught y=0.
13+
# through y=0.
1414
ax.axis["y=0"] = ax.new_floating_axis(nth_coord=0, value=0,
1515
axis_direction="bottom")
1616
ax.axis["y=0"].toggle(all=True)

doc/mpl_toolkits/axes_grid/figures/simple_axisline2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
fig = plt.figure(1, (4,3))
66

7-
# a subplot with two additiona axis, "xzero" and "yzero". "xzero" is
7+
# a subplot with two additional axis, "xzero" and "yzero". "xzero" is
88
# y=0 line, and "yzero" is x=0 line.
99
ax = SubplotZero(fig, 1, 1, 1)
1010
fig.add_subplot(ax)

doc/users/plotting/examples/custom_boxstyle02.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import matplotlib.pyplot as plt
44

55
# we may derive from matplotlib.patches.BoxStyle._Base class.
6-
# You need to overide transmute method in this case.
6+
# You need to override transmute method in this case.
77

88
class MyStyle(BoxStyle._Base):
99
"""

examples/api/date_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
datafile = cbook.get_sample_data('goog.npy')
3232
try:
3333
# Python3 cannot load python2 .npy files with datetime(object) arrays
34-
# unless the encoding is set to bytes. Hovever this option was
34+
# unless the encoding is set to bytes. However this option was
3535
# not added until numpy 1.10 so this example will only work with
3636
# python 2 or with numpy 1.10 and later.
3737
r = np.load(datafile, encoding='bytes').view(np.recarray)

examples/api/font_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Although it is usually not a good idea to explicitly point to a single
88
ttf file for a font instance, you can do so using the
99
font_manager.FontProperties fname argument (for a more flexible
10-
solution, see the font_fmaily_rc.py and fonts_demo.py examples).
10+
solution, see the font_family_rc.py and fonts_demo.py examples).
1111
"""
1212
import sys
1313
import os

examples/api/histogram_path_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
the faster method of using PolyCollections, were implemented before we
99
had proper paths with moveto/lineto, closepoly etc in mpl. Now that
1010
we have them, we can draw collections of regularly shaped objects with
11-
homogeous properties more efficiently with a PathCollection. This
11+
homogeneous properties more efficiently with a PathCollection. This
1212
example makes a histogram -- its more work to set up the vertex arrays
1313
at the outset, but it should be much faster for large numbers of
1414
objects

examples/api/radar_chart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def example_data():
135135
# Pyrolized Organic Carbon (OP)
136136
# 2)Inclusion of gas-phase specie carbon monoxide (CO)
137137
# 3)Inclusion of gas-phase specie ozone (O3).
138-
# 4)Inclusion of both gas-phase speciesis present...
138+
# 4)Inclusion of both gas-phase species is present...
139139
data = [
140140
['Sulfate', 'Nitrate', 'EC', 'OC1', 'OC2', 'OC3', 'OP', 'CO', 'O3'],
141141
('Basecase', [

examples/api/unicode_minus.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
Unicode minus
44
=============
55
6-
You can use the proper typesetting unicode minus (see
7-
http://en.wikipedia.org/wiki/Plus_sign#Plus_sign) or the ASCII hypen
6+
You can use the proper typesetting Unicode minus (see
7+
https://en.wikipedia.org/wiki/Plus_sign#Plus_sign) or the ASCII hyphen
88
for minus, which some people prefer. The matplotlibrc param
99
axes.unicode_minus controls the default behavior.
1010
11-
The default is to use the unicode minus
11+
The default is to use the Unicode minus.
1212
"""
1313
import numpy as np
1414
import matplotlib
@@ -17,5 +17,5 @@
1717
matplotlib.rcParams['axes.unicode_minus'] = False
1818
fig, ax = plt.subplots()
1919
ax.plot(10*np.random.randn(100), 10*np.random.randn(100), 'o')
20-
ax.set_title('Using hypen instead of unicode minus')
20+
ax.set_title('Using hyphen instead of Unicode minus')
2121
plt.show()

examples/axes_grid/demo_curvelinear_grid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def curvelinear_test2(fig):
113113
# A parasite axes with given transform
114114
ax2 = ParasiteAxesAuxTrans(ax1, tr, "equal")
115115
# note that ax2.transData == tr + ax1.transData
116-
# Anthing you draw in ax2 will match the ticks and grids of ax1.
116+
# Anything you draw in ax2 will match the ticks and grids of ax1.
117117
ax1.parasites.append(ax2)
118118
intp = cbook.simple_linear_interpolation
119119
ax2.plot(intp(np.array([0, 30]), 50),

examples/axes_grid/demo_parasite_axes2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
to plot multiple different values onto one single plot. Notice how in this
66
example, par1 and par2 are both calling twinx meaning both are tied directly to
77
the x-axis. From there, each of those two axis can behave separately from the
8-
each other, meaning they can take on seperate values from themselves as well as
8+
each other, meaning they can take on separate values from themselves as well as
99
the x-axis.
1010
"""
1111
from mpl_toolkits.axes_grid1 import host_subplot

0 commit comments

Comments
 (0)