Skip to content

Commit 4c2a412

Browse files
committed
Merge pull request #7677 from dstansby/doc-stylechanges
DOC: Make new default style examples consistent
1 parent 4207572 commit 4c2a412

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.
@@ -581,14 +582,13 @@ The default value of the ``align`` kwarg for both
581582
**bar_kwargs)
582583
583584

584-
ax1.set_title('2.0')
585-
586-
ax2.set_title("classic alignment")
585+
ax1.set_title("classic")
586+
ax2.set_title('v2.0')
587587

588-
demo(ax1.bar, {})
589-
demo(ax2.bar, {'align': 'edge'})
590-
demo(ax3.barh, {})
591-
demo(ax4.barh, {'align': 'edge'})
588+
demo(ax1.bar, {'align': 'edge'})
589+
demo(ax2.bar, {})
590+
demo(ax3.barh, {'align': 'edge'})
591+
demo(ax4.barh, {})
592592

593593

594594
To restore the previous behavior explicitly pass the keyword argument

0 commit comments

Comments
 (0)