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 6a18c66

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

File tree

Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed

‎doc/users/dflt_style_changes.rst

Copy file name to clipboardExpand all lines: doc/users/dflt_style_changes.rst
+4-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.