<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi,<br>
</p>
Le 06/12/2016 à 06:38, Thomas Caswell a écrit :<br>
<blockquote
cite="mid:CAA48SF96gX9evtFcyufteZ8yNbWG=vziVSPQuw1rSTMarTTS3w@mail.gmail.com"
type="cite">
<div> Some of the highlights:</div>
<div><br>
</div>
<div> - new default styles ( <a moz-do-not-send="true"
href="http://matplotlib.org/2.0.0rc1/users/dflt_style_changes.html">http://matplotlib.org/2.0.0rc1/users/dflt_style_changes.html</a>
)</div>
</blockquote>
Very nice and useful document. I just noticed that the boxplot
example has a ylim issue: the boxes' height is tiny.<br>
<br>
This is a proposition to change the script (dflt_style_changes-7.py)
that generate the plot:<br>
(add seeding + cut extreme outliers)<br>
<br>
<blockquote>np.random.seed(0)<br>
<br>
data = np.random.lognormal(size=(37, 4))<br>
fig, (old, new) = plt.subplots(ncols=2, sharey=True)<br>
with plt.style.context('default'):<br>
new.boxplot(data, labels=['A', 'B', 'C', 'D'])<br>
new.set_title('New boxplots')<br>
<br>
with plt.style.context('classic'):<br>
old.boxplot(data, labels=['A', 'B', 'C', 'D'])<br>
old.set_title('Old boxplots')<br>
<br>
new.set_ylim(bottom=0, top=15)<br>
</blockquote>
<br>
best,<br>
Pierre<br>
</body>
</html>