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

Skip to content

Commit 6a18c66

Browse files
committed
DOC: add data for boxplots, fix aliases
1 parent f0afe77 commit 6a18c66

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

doc/users/dflt_style_changes.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,12 +422,13 @@ obscuring data too much.
422422

423423
.. plot::
424424

425-
fig, (old, new) = pyplot.subplots(ncols=2, sharey=True)
426-
with pyplot.style.context('default'):
425+
data = np.random.lognormal(size=(37, 4))
426+
fig, (old, new) = plt.subplots(ncols=2, sharey=True)
427+
with plt.style.context('default'):
427428
new.boxplot(data, labels=['A', 'B', 'C', 'D'])
428429
new.set_title('New boxplots')
429430

430-
with pyplot.style.context('classic'):
431+
with plt.style.context('classic'):
431432
old.boxplot(data, labels=['A', 'B', 'C', 'D'])
432433
old.set_title('Old boxplots')
433434

0 commit comments

Comments
 (0)