8000 Merge pull request #6745 from afvincent/typo_broken_axis_example · matplotlib/matplotlib@3f569bb · GitHub
[go: up one dir, main page]

Skip to content

Commit 3f569bb

Browse files
committed
Merge pull request #6745 from afvincent/typo_broken_axis_example
DOC: typo in broken_axis pylab example
1 parent 74b634e commit 3f569bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/pylab_examples/broken_axis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import numpy as np
66

77

8-
# 30 points between 0 0.2] originally made using np.random.rand(30)*.2
8+
# 30 points between [0, 0.2) originally made using np.random.rand(30)*.2
99
pts = np.array([
1010
0.015, 0.166, 0.133, 0.159, 0.041, 0.024, 0.195, 0.039, 0.161, 0.018,
1111
0.143, 0.056, 0.125, 0.096, 0.094, 0.051, 0.043, 0.021, 0.138, 0.075,
@@ -44,7 +44,7 @@
4444
# right transform and disable clipping.
4545

4646
d = .015 # how big to make the diagonal lines in axes coordinates
47-
# arguments to pass plot, just so we don't keep repeating them
47+
# arguments to pass to plot, just so we don't keep repeating them
4848
kwargs = dict(transform=ax.transAxes, color='k', clip_on=False)
4949
ax.plot((-d, +d), (-d, +d), **kwargs) # top-left diagonal
5050
ax.plot((1 - d, 1 + d), (-d, +d), **kwargs) # top-right diagonal

0 commit comments

Comments
 (0)
0