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

Skip to content

Commit fccaa18

Browse files
committed
ran a spell-checker on some files
1 parent c6fac36 commit fccaa18

19 files changed

Lines changed: 20 additions & 20 deletions

examples/pylab_examples/agg_buffer_to_array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
ax.set_title('a simple figure')
1010
fig.canvas.draw()
1111

12-
# grab rhe pixel buffer and dumpy it into a numpy array
12+
# grab the pixel buffer and dump it into a numpy array
1313
buf = fig.canvas.buffer_rgba()
1414
l, b, w, h = fig.bbox.bounds
1515
X = np.frombuffer(buf, np.uint8)

examples/pylab_examples/anchored_artists.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self, transform, size, label, loc,
2222
pad=0.1, borderpad=0.1, sep=2, prop=None, frameon=True):
2323
"""
2424
Draw a horizontal bar with the size in data coordinate of the give axes.
25-
A label will be drawn underneath (center-alinged).
25+
A label will be drawn underneath (center-aligned).
2626
2727
pad, borderpad in fraction of the legend font size (or prop)
2828
sep in points.

examples/pylab_examples/annotation_demo.py

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

114114

115115
if 1:
116-
# You can also use polar notation on a catesian axes. Here the
116+
# You can also use polar notation on a cartesian axes. Here the
117117
# native coordinate system ('data') is cartesian, so you need to
118118
# specify the xycoords and textcoords as 'polar' if you want to
119119
# use (theta, radius)

examples/pylab_examples/axhspan_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# draw a default vline at x=1 that spans the yrange
1515
l = plt.axvline(x=1)
1616

17-
# draw a thick blue vline at x=0 that spans the the upper quadrant of
17+
# draw a thick blue vline at x=0 that spans the upper quadrant of
1818
# the yrange
1919
l = plt.axvline(x=0, ymin=0.75, linewidth=4, color='b')
2020

examples/pylab_examples/boxplot_demo2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
medianY.append(med.get_ydata()[j])
8181
plt.plot(medianX, medianY, 'k')
8282
medians[i] = medianY[0]
83-
# Finally, overplot the sample averages, with horixzontal alignment
83+
# Finally, overplot the sample averages, with horizontal alignment
8484
# in the center of each box
8585
plt.plot([np.average(med.get_xdata())], [np.average(data[i])],
8686
color='w', marker='*', markeredgecolor='k')

examples/pylab_examples/centered_ticklabels.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# sometimes it is nice to have ticklabels centered. mpl currently
22
# associates a label with a tick, and the label can be aligned
3-
# 'center', 'feft', or 'right' using the horizontal alignment property:
3+
# 'center', 'left', or 'right' using the horizontal alignment property:
44
#
55
#
66
# for label in ax.xaxis.get_xticklabels():
7-
# label.set_horizntal_alignment('right')
7+
# label.set_horizontalalignment('right')
88
#
99
#
1010
# but this doesn't help center the label between ticks. One solution

examples/pylab_examples/custom_figure_class.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
You can pass a custom Figure constructor to figure if youy want to derive from the default Figure. This simple example creates a figure with a figure title
2+
You can pass a custom Figure constructor to figure if you want to derive from the default Figure. This simple example creates a figure with a figure title
33
"""
44
from matplotlib.pyplot import figure, show
55
from matplotlib.figure import Figure

examples/pylab_examples/custom_ticker1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22

33
"""
4-
The new ticker code was designed to explicity support user customized
4+
The new ticker code was designed to explicitly support user customized
55
ticking. The documentation
66
http://matplotlib.sourceforge.net/matplotlib.ticker.html details this
77
process. That code defines a lot of preset tickers but was primarily

examples/pylab_examples/customize_rc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def set_pub():
3636
rc('xtick.major', size=5, pad=7)
3737
rc('xtick', labelsize=15)
3838

39-
# using aliases for color, linestyle and linewith; gray, solid, thick
39+
# using aliases for color, linestyle and linewidth; gray, solid, thick
4040
rc('grid', c='0.5', ls='-', lw=5)
4141
rc('lines', lw=2, color='g')
4242
subplot(312)

examples/pylab_examples/date_demo_convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
ax.plot_date(dates, y*y)
1818

1919
# this is superfluous, since the autoscaler should get it right, but
20-
# use date2num and num2date to to convert between dates and floats if
20+
# use date2num and num2date to convert between dates and floats if
2121
# you want; both date2num and num2date convert an instance or sequence
2222
ax.set_xlim( dates[0], dates[-1] )
2323

0 commit comments

Comments
 (0)