Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9208b5e

Browse files
committed
doc: Modify examples to _really_ be non-default.
The axes props demo is trying to set the grid style to something non-default, but the default is now solid, so it appears to do nothing. Similarly, the "thick" lines in the axhspan don't appear so thick any more now that the default line style is a little thicker.
1 parent c0891d1 commit 9208b5e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/pylab_examples/axes_props.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
line.set_linewidth(3)
2020

2121
for line in gridlines:
22-
line.set_linestyle('-')
22+
line.set_linestyle('-.')
2323

2424
for label in ticklabels:
2525
label.set_color('r')

examples/pylab_examples/axhspan_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
plt.plot(t, s)
88
# draw a thick red hline at y=0 that spans the xrange
9-
l = plt.axhline(linewidth=4, color='#d62728')
9+
l = plt.axhline(linewidth=8, color='#d62728')
1010

1111
# draw a default hline at y=1 that spans the xrange
1212
l = plt.axhline(y=1)
@@ -16,7 +16,7 @@
1616

1717
# draw a thick blue vline at x=0 that spans the upper quadrant of
1818
# the yrange
19-
l = plt.axvline(x=0, ymin=0.75, linewidth=4, color='#1f77b4')
19+
l = plt.axvline(x=0, ymin=0.75, linewidth=8, color='#1f77b4')
2020

2121
# draw a default hline at y=.5 that spans the middle half of
2222
# the axes

0 commit comments

Comments
 (0)