Skip to content

Commit c16f4a0

Browse files
committed
Fix some typos in examples
1 parent d358cc3 commit c16f4a0

File tree

4 files changed

+14
-15
lines changed

4 files changed

+14
-15
lines changed

examples/lines_bars_and_markers/multivariate_marker_plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
skills = np.random.uniform(5, 80, size=N) * 0.1 + 5
2828
takeoff_angles = np.random.normal(0, 90, N)
2929
thrusts = np.random.uniform(size=N)
30-
successfull = np.random.randint(0, 3, size=N)
30+
successful = np.random.randint(0, 3, size=N)
3131
positions = np.random.normal(size=(N, 2)) * 5
32-
data = zip(skills, takeoff_angles, thrusts, successfull, positions)
32+
data = zip(skills, takeoff_angles, thrusts, successful, positions)
3333

3434
cmap = plt.cm.get_cmap("plasma")
3535
fig, ax = plt.subplots()

examples/misc/svg_filter_line.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
SVG Filter Line
44
===============
55
6-
Demonstrate SVG filtering effects which might be used with mpl.
6+
Demonstrate SVG filtering effects which might be used with Matplotlib.
77
8-
Note that the filtering effects are only effective if your svg renderer
8+
Note that the filtering effects are only effective if your SVG renderer
99
support it.
1010
"""
1111

examples/misc/svg_filter_pie.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
SVG Filter Pie
44
==============
55
6-
Demonstrate SVG filtering effects which might be used with mpl.
6+
Demonstrate SVG filtering effects which might be used with Matplotlib.
77
The pie chart drawing code is borrowed from pie_demo.py
88
9-
Note that the filtering effects are only effective if your svg renderer
9+
Note that the filtering effects are only effective if your SVG renderer
1010
support it.
1111
"""
1212

@@ -26,7 +26,7 @@
2626
explode = (0, 0.05, 0, 0)
2727

2828
# We want to draw the shadow for each pie but we will not use "shadow"
29-
# option as it does'n save the references to the shadow patches.
29+
# option as it doesn't save the references to the shadow patches.
3030
pies = ax.pie(fracs, explode=explode, labels=labels, autopct='%1.1f%%')
3131

3232
for w in pies[0]:
@@ -49,12 +49,11 @@
4949
plt.savefig(f, format="svg")
5050

5151

52-
# filter definition for shadow using a gaussian blur
53-
# and lightening effect.
54-
# The lightening filter is copied from http://www.w3.org/TR/SVG/filters.html
52+
# Filter definition for shadow using a gaussian blur and lighting effect.
53+
# The lighting filter is copied from http://www.w3.org/TR/SVG/filters.html
5554

5655
# I tested it with Inkscape and Firefox3. "Gaussian blur" is supported
57-
# in both, but the lightening effect only in the Inkscape. Also note
56+
# in both, but the lighting effect only in Inkscape. Also note
5857
# that, Inkscape's exporting also may not support it.
5958

6059
filter_def = """

plot_types/arrays/barbs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
================
3-
barbs(X, Y U, V)
4-
================
2+
=================
3+
barbs(X, Y, U, V)
4+
=================
55
66
See `~matplotlib.axes.Axes.barbs`.
77
"""
@@ -26,7 +26,7 @@
2626
# plot:
2727
fig, ax = plt.subplots()
2828

29-
ax.barbs(X, Y, U, V, barbcolor="C0", flagcolor="C0", length=7, linewidth=1.5)
29+
ax.barbs(X, Y, U, V, barbcolor='C0', flagcolor='C0', length=7, linewidth=1.5)
3030

3131
ax.set(xlim=(0, 4.5), ylim=(0, 4.5))
3232

0 commit comments

Comments
 (0)