From a775607d0055ce0d9c6d5745f7ad0a23689fed13 Mon Sep 17 00:00:00 2001 From: Paul Hobson Date: Tue, 6 Dec 2016 08:58:41 -0800 Subject: [PATCH] DOC: new boxplot demo is now log-scaled --- doc/users/dflt_style_changes.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/users/dflt_style_changes.rst b/doc/users/dflt_style_changes.rst index b0ab000a6bcb..e9d564ab0f97 100644 --- a/doc/users/dflt_style_changes.rst +++ b/doc/users/dflt_style_changes.rst @@ -422,17 +422,19 @@ obscuring data too much. .. plot:: + np.random.seed(0) data = np.random.lognormal(size=(37, 4)) fig, (old, new) = plt.subplots(ncols=2, sharey=True) with plt.style.context('default'): new.boxplot(data, labels=['A', 'B', 'C', 'D']) new.set_title('New boxplots') + new.set_yscale('log') with plt.style.context('classic'): old.boxplot(data, labels=['A', 'B', 'C', 'D']) old.set_title('Old boxplots') + old.set_yscale('log') - new.set_ylim(bottom=0) The previous defaults can be restored by setting::