Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3f569bb

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

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎examples/pylab_examples/broken_axis.py

Copy file name to clipboardExpand all lines: examples/pylab_examples/broken_axis.py
+2-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.