Skip to content

Backport PR #21468 on branch v3.5.x (Fix some typos in examples) #21469

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/misc/svg_filter_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
SVG Filter Line
===============

Demonstrate SVG filtering effects which might be used with mpl.
Demonstrate SVG filtering effects which might be used with Matplotlib.

Note that the filtering effects are only effective if your svg renderer
Note that the filtering effects are only effective if your SVG renderer
support it.
"""

Expand Down
13 changes: 6 additions & 7 deletions examples/misc/svg_filter_pie.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
SVG Filter Pie
==============

Demonstrate SVG filtering effects which might be used with mpl.
Demonstrate SVG filtering effects which might be used with Matplotlib.
The pie chart drawing code is borrowed from pie_demo.py

Note that the filtering effects are only effective if your svg renderer
Note that the filtering effects are only effective if your SVG renderer
support it.
"""

Expand All @@ -26,7 +26,7 @@
explode = (0, 0.05, 0, 0)

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

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


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

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

filter_def = """
Expand Down
8 changes: 4 additions & 4 deletions plot_types/arrays/barbs.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
================
barbs(X, Y U, V)
================
=================
barbs(X, Y, U, V)
=================

See `~matplotlib.axes.Axes.barbs`.
"""
Expand All @@ -26,7 +26,7 @@
# plot:
fig, ax = plt.subplots()

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

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

Expand Down