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

Skip to content

Commit 2bc075e

Browse files
authored
Merge pull request #7677 from dstansby/doc-stylechanges
DOC: Make new default style examples consistent
2 parents c21d189 + 6f19e8a commit 2bc075e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

doc/users/dflt_style_changes.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,9 @@ cycle.
495495
return [ax.fill_between(th, np.sin((j / N) * np.pi + th), alpha=.5, **extra_kwargs)
496496
for j in range(N)]
497497
498-
demo(ax1, {}, '2.x')
499-
demo(ax2, {'facecolor': 'C0'}, 'non-cycled')
498+
demo(ax1, {'facecolor': 'C0'}, 'classic')
499+
demo(ax2, {}, 'v2.0')
500+
500501

501502
If the facecolor is set via the ``facecolors`` or ``color`` keyword argument,
502503
then the color is not cycled.
@@ -588,14 +589,13 @@ The default value of the ``align`` kwarg for both
588589
**bar_kwargs)
589590
590591

591-
ax1.set_title('2.0')
592-
593-
ax2.set_title("classic alignment")
592+
ax1.set_title("classic")
593+
ax2.set_title('v2.0')
594594

595-
demo(ax1.bar, {})
596-
demo(ax2.bar, {'align': 'edge'})
597-
demo(ax3.barh, {})
598-
demo(ax4.barh, {'align': 'edge'})
595+
demo(ax1.bar, {'align': 'edge'})
596+
demo(ax2.bar, {})
597+
demo(ax3.barh, {'align': 'edge'})
598+
demo(ax4.barh, {})
599599

600600

601601
To restore the previous behavior explicitly pass the keyword argument

0 commit comments

Comments
 (0)