8000 Fix some typos in merged examples. · matplotlib/matplotlib@426a712 · GitHub
[go: up one dir, main page]

Skip to content

Commit 426a712

Browse files
committed
Fix some typos in merged examples.
1 parent 5b8efe1 commit 426a712

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

examples/images_contours_and_fields/image_demo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@
138138

139139
###############################################################################
140140
# You can specify whether images should be plotted with the array origin
141-
# x[0,0] in the upper left or upper right by using the origin parameter.
142-
# You can also control the default be setting image.origin in your
143-
# matplotlibrc file; see http://matplotlib.org/matplotlibrc
141+
# x[0,0] in the upper left or lower right by using the origin parameter.
142+
# You can also control the default setting image.origin in your
143+
# :ref:`matplotlibrc file <customizing-with-matplotlibrc-files>`
144144

145145
x = np.arange(120).reshape((10, 12))
146146

examples/pylab_examples/fancybox_demo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def test2(ax):
9393
#p_fancy.set_boxstyle("round", pad=0.1, rounding_size=0.2)
9494

9595
ax.text(0.1, 0.8,
96-
' boxstyle="round,pad=0.1\n rounding\\_size=0.2"',
96+
' boxstyle="round,pad=0.1\n rounding_size=0.2"',
9797
size=10, transform=ax.transAxes)
9898

9999
# draws control points for the fancy box.
@@ -118,7 +118,7 @@ def test3(ax):
118118
ax.add_patch(p_fancy)
119119

120120
ax.text(0.1, 0.8,
121-
' boxstyle="round,pad=0.1"\n mutation\\_scale=2',
121+
' boxstyle="round,pad=0.1"\n mutation_scale=2',
122122
size=10, transform=ax.transAxes)
123123

124124
# draws control points for the fancy box.
@@ -152,7 +152,7 @@ def test4(ax):
152152
ax.add_patch(p_fancy)
153153

154154
ax.text(0.1, 0.8,
155-
' boxstyle="round,pad=0.3"\n mutation\\_aspect=.5',
155+
' boxstyle="round,pad=0.3"\n mutation_aspect=.5',
156156
size=10, transform=ax.transAxes)
157157

158158
draw_bbox(ax, bb)

examples/pylab_examples/psd_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Plotting Power Spectral Density (PSD) in Matplotlib.
77
8-
The PSD is a common plot in the field of signal processing. Numpy has
8+
The PSD is a common plot in the field of signal processing. NumPy has
99
many useful libraries for computing a PSD. Below we demo a few examples
1010
of how this can be accomplished and visualized with Matplotlib.
1111
"""

examples/user_interfaces/histogram_demo_canvasagg_sgskip.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@
4444

4545
s = canvas.tostring_rgb() # save this and convert to bitmap as needed
4646

47-
# get the figure dimensions for creating bitmaps or numpy arrays,
47+
# Get the figure dimensions for creating bitmaps or NumPy arrays,
4848
# etc.
4949
l, b, w, h = fig.bbox.bounds
5050
w, h = int(w), int(h)
5151

5252
if 0:
53-
# convert to a numpy array
53+
# Convert to a NumPy array
5454
X = np.fromstring(s, np.uint8).reshape((h, w, 3))
5555

5656
if 0:

0 commit comments

Comments
 (0)
0