-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathwhats_new.html
More file actions
687 lines (632 loc) · 45.5 KB
/
whats_new.html
File metadata and controls
687 lines (632 loc) · 45.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>What’s new in matplotlib — Matplotlib 2.0.2.post4416.dev0+g1df513f documentation</title>
<link rel="stylesheet" href="../_static/mpl.css"
type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css"
type="text/css" />
<link rel="stylesheet" href="../_static/gallery.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '2.0.2.post4416.dev0+g1df513f',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt'
};
</script>
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<link rel="search" type="application/opensearchdescription+xml"
title="Search within Matplotlib 2.0.2.post4416.dev0+g1df513f documentation"
href="../_static/opensearch.xml"/>
<link rel="shortcut icon" href="../_static/favicon.ico"/>
<link rel="index" title="Index" href="../genindex.html"
/>
<link rel="search" title="Search" href="../search.html"
/>
<link rel="top" title="Matplotlib 2.0.2.post4416.dev0+g1df513f documentation" href="../index.html" />
<link rel="up" title="User’s Guide" href="index.html" />
<link rel="next" title="Changes to the default style" href="dflt_style_changes.html" />
<link rel="prev" title="Event handling and picking" href="event_handling.html" />
</head>
<body>
<!-- The "Fork me on github" ribbon -->
<img style="float: right; margin-bottom: -40px; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png" usemap="#ribbonmap"/>
<map name="ribbonmap">
<area shape="poly" coords="15,0,148,-1,148,135" href="https://github.com/matplotlib/matplotlib" title="Fork me on GitHub" />
</map>
<div style="background-color: white; text-align: left; padding: 10px 10px 15px 15px">
<a href="../index.html"><img src="../_static/logo2.svg" width="540px" border="0" alt="matplotlib"/></a>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="dflt_style_changes.html" title="Changes to the default style"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="event_handling.html" title="Event handling and picking"
accesskey="P">previous</a> |</li>
<li><a href="../index.html">home</a>| </li>
<li><a href="../gallery/index.html">examples</a>| </li>
<li><a href="../tutorials/index.html">tutorials</a>| </li>
<li><a href="../api/pyplot_summary.html">pyplot</a>| </li>
<li><a href="../contents.html">docs</a> »</li>
<li><a href="index.html" accesskey="U">User’s Guide</a> »</li>
</ul>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper"><a href="https://www.numfocus.org">
<image src="https://img.shields.io/badge/powered%20by-NumFOCUS-orange.svg?style=flat&colorA=E1523D&colorB=007D8A">
</a>
<br/>
<a href="http://depsy.org/package/python/matplotlib">
<img src="../_static/depsy_badge.svg">
</a>
<br/>
Travis-CI: <a href="https://travis-ci.org/matplotlib/matplotlib">
<img src="https://travis-ci.org/matplotlib/matplotlib.svg?branch=master"/>
</a>
<br/>
<h3><a href="../contents.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">What’s new in matplotlib</a><ul>
<li><a class="reference internal" href="#new-in-matplotlib-2-0">New in matplotlib 2.0</a><ul>
<li><a class="reference internal" href="#default-style-changes">Default style changes</a></li>
<li><a class="reference internal" href="#improved-color-conversion-api-and-rgba-support">Improved color conversion API and RGBA support</a></li>
<li><a class="reference internal" href="#new-configuration-rcparams">New Configuration (rcParams)</a><ul>
<li><a class="reference internal" href="#added-svg-hashsalt-key-to-rcparams">Added <code class="docutils literal"><span class="pre">svg.hashsalt</span></code> key to rcParams</a></li>
<li><a class="reference internal" href="#removed-the-svg-image-noscale-rcparam">Removed the <code class="docutils literal"><span class="pre">svg.image_noscale</span></code> rcParam</a></li>
</ul>
</li>
<li><a class="reference internal" href="#qualitative-colormaps">Qualitative colormaps</a></li>
<li><a class="reference internal" href="#axis-offset-label-now-responds-to-labelcolor">Axis offset label now responds to <code class="docutils literal"><span class="pre">labelcolor</span></code></a></li>
<li><a class="reference internal" href="#improved-offset-text-choice">Improved offset text choice</a></li>
<li><a class="reference internal" href="#style-parameter-blacklist">Style parameter blacklist</a></li>
<li><a class="reference internal" href="#change-in-default-font">Change in default font</a></li>
<li><a class="reference internal" href="#faster-text-rendering">Faster text rendering</a></li>
<li><a class="reference internal" href="#improvements-for-the-qt-figure-options-editor">Improvements for the Qt figure options editor</a></li>
<li><a class="reference internal" href="#improved-image-support">Improved image support</a><ul>
<li><a class="reference internal" href="#non-linear-scales-on-image-plots">Non-linear scales on image plots</a></li>
</ul>
</li>
<li><a class="reference internal" href="#support-for-hidpi-retina-displays-in-the-nbagg-and-webagg-backends">Support for HiDPI (Retina) displays in the NbAgg and WebAgg backends</a></li>
<li><a class="reference internal" href="#change-in-the-default-animation-codec">Change in the default animation codec</a></li>
<li><a class="reference internal" href="#deprecated-support-for-mencoder-in-animation">Deprecated support for mencoder in animation</a></li>
<li><a class="reference internal" href="#boxplot-zorder-keyword-argument">Boxplot Zorder Keyword Argument</a></li>
<li><a class="reference internal" href="#filled-and-x-markers">Filled <code class="docutils literal"><span class="pre">+</span></code> and <code class="docutils literal"><span class="pre">x</span></code> markers</a></li>
<li><a class="reference internal" href="#rcount-and-ccount-for-plot-surface"><code class="docutils literal"><span class="pre">rcount</span></code> and <code class="docutils literal"><span class="pre">ccount</span></code> for <code class="docutils literal"><span class="pre">plot_surface()</span></code></a></li>
<li><a class="reference internal" href="#streamplot-zorder-keyword-argument-changes">Streamplot Zorder Keyword Argument Changes</a></li>
<li><a class="reference internal" href="#extension-to-matplotlib-backend-bases-graphicscontextbase">Extension to <code class="docutils literal"><span class="pre">matplotlib.backend_bases.GraphicsContextBase</span></code></a></li>
</ul>
</li>
<li><a class="reference internal" href="#previous-whats-new">Previous Whats New</a></li>
</ul>
</li>
</ul>
<div class="relations">
<h3>Related Topics</h3>
<ul>
<li><a href="../contents.html">Documentation overview</a><ul>
<li><a href="index.html">User’s Guide</a><ul>
<li>Previous: <a href="event_handling.html" title="previous chapter">Event handling and picking</a></li>
<li>Next: <a href="dflt_style_changes.html" title="next chapter">Changes to the default style</a></li>
</ul></li>
</ul></li>
</ul>
</div>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../_sources/users/whats_new.rst.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<h3>Quick search</h3>
<form class="search" action="../search.html" method="get">
<div><input type="text" name="q" /></div>
<div><input type="submit" value="Go" /></div>
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="what-s-new-in-matplotlib">
<span id="whats-new"></span><h1><a class="toc-backref" href="#id1">What’s new in matplotlib</a><a class="headerlink" href="#what-s-new-in-matplotlib" title="Permalink to this headline">¶</a></h1>
<p>For a list of all of the issues and pull requests since the last
revision, see the <a class="reference internal" href="github_stats.html#github-stats"><span class="std std-ref">GitHub Stats</span></a>.</p>
<div class="contents topic" id="table-of-contents">
<p class="topic-title first">Table of Contents</p>
<ul class="simple">
<li><a class="reference internal" href="#what-s-new-in-matplotlib" id="id1">What’s new in matplotlib</a><ul>
<li><a class="reference internal" href="#new-in-matplotlib-2-0" id="id2">New in matplotlib 2.0</a><ul>
<li><a class="reference internal" href="#default-style-changes" id="id3">Default style changes</a></li>
<li><a class="reference internal" href="#improved-color-conversion-api-and-rgba-support" id="id4">Improved color conversion API and RGBA support</a></li>
<li><a class="reference internal" href="#new-configuration-rcparams" id="id5">New Configuration (rcParams)</a></li>
<li><a class="reference internal" href="#qualitative-colormaps" id="id6">Qualitative colormaps</a></li>
<li><a class="reference internal" href="#axis-offset-label-now-responds-to-labelcolor" id="id7">Axis offset label now responds to <code class="xref py py-obj docutils literal"><span class="pre">labelcolor</span></code></a></li>
<li><a class="reference internal" href="#improved-offset-text-choice" id="id8">Improved offset text choice</a></li>
<li><a class="reference internal" href="#style-parameter-blacklist" id="id9">Style parameter blacklist</a></li>
<li><a class="reference internal" href="#change-in-default-font" id="id10">Change in default font</a></li>
<li><a class="reference internal" href="#faster-text-rendering" id="id11">Faster text rendering</a></li>
<li><a class="reference internal" href="#improvements-for-the-qt-figure-options-editor" id="id12">Improvements for the Qt figure options editor</a></li>
<li><a class="reference internal" href="#improved-image-support" id="id13">Improved image support</a></li>
<li><a class="reference internal" href="#support-for-hidpi-retina-displays-in-the-nbagg-and-webagg-backends" id="id14">Support for HiDPI (Retina) displays in the NbAgg and WebAgg backends</a></li>
<li><a class="reference internal" href="#change-in-the-default-animation-codec" id="id15">Change in the default animation codec</a></li>
<li><a class="reference internal" href="#deprecated-support-for-mencoder-in-animation" id="id16">Deprecated support for mencoder in animation</a></li>
<li><a class="reference internal" href="#boxplot-zorder-keyword-argument" id="id17">Boxplot Zorder Keyword Argument</a></li>
<li><a class="reference internal" href="#filled-and-x-markers" id="id18">Filled <code class="docutils literal"><span class="pre">+</span></code> and <code class="docutils literal"><span class="pre">x</span></code> markers</a></li>
<li><a class="reference internal" href="#rcount-and-ccount-for-plot-surface" id="id19"><code class="xref py py-obj docutils literal"><span class="pre">rcount</span></code> and <code class="xref py py-obj docutils literal"><span class="pre">ccount</span></code> for <code class="xref py py-obj docutils literal"><span class="pre">plot_surface()</span></code></a></li>
<li><a class="reference internal" href="#streamplot-zorder-keyword-argument-changes" id="id20">Streamplot Zorder Keyword Argument Changes</a></li>
<li><a class="reference internal" href="#extension-to-matplotlib-backend-bases-graphicscontextbase" id="id21">Extension to <a class="reference internal" href="../api/backend_bases_api.html#matplotlib.backend_bases.GraphicsContextBase" title="matplotlib.backend_bases.GraphicsContextBase"><code class="xref py py-obj docutils literal"><span class="pre">matplotlib.backend_bases.GraphicsContextBase</span></code></a></a></li>
</ul>
</li>
<li><a class="reference internal" href="#previous-whats-new" id="id22">Previous Whats New</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="new-in-matplotlib-2-0">
<h2><a class="toc-backref" href="#id2">New in matplotlib 2.0</a><a class="headerlink" href="#new-in-matplotlib-2-0" title="Permalink to this headline">¶</a></h2>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">matplotlib 2.0 supports Python 2.7, and 3.4+</p>
</div>
<div class="section" id="default-style-changes">
<h3><a class="toc-backref" href="#id3">Default style changes</a><a class="headerlink" href="#default-style-changes" title="Permalink to this headline">¶</a></h3>
<p>The major changes in v2.0 are related to overhauling the default styles.</p>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="dflt_style_changes.html">Changes to the default style</a><ul>
<li class="toctree-l2"><a class="reference internal" href="dflt_style_changes.html#colors-color-cycles-and-color-maps">Colors, color cycles, and color maps</a></li>
<li class="toctree-l2"><a class="reference internal" href="dflt_style_changes.html#figure-size-font-size-and-screen-dpi">Figure size, font size, and screen dpi</a></li>
<li class="toctree-l2"><a class="reference internal" href="dflt_style_changes.html#plotting-functions">Plotting functions</a></li>
<li class="toctree-l2"><a class="reference internal" href="dflt_style_changes.html#hatching">Hatching</a></li>
<li class="toctree-l2"><a class="reference internal" href="dflt_style_changes.html#fonts">Fonts</a></li>
<li class="toctree-l2"><a class="reference internal" href="dflt_style_changes.html#legends">Legends</a></li>
<li class="toctree-l2"><a class="reference internal" href="dflt_style_changes.html#image">Image</a></li>
<li class="toctree-l2"><a class="reference internal" href="dflt_style_changes.html#plot-layout">Plot layout</a></li>
<li class="toctree-l2"><a class="reference internal" href="dflt_style_changes.html#mplot3d">mplot3d</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div class="section" id="improved-color-conversion-api-and-rgba-support">
<h3><a class="toc-backref" href="#id4">Improved color conversion API and RGBA support</a><a class="headerlink" href="#improved-color-conversion-api-and-rgba-support" title="Permalink to this headline">¶</a></h3>
<p>The <a class="reference internal" href="../api/colors_api.html#module-matplotlib.colors" title="matplotlib.colors"><code class="xref py py-mod docutils literal"><span class="pre">colors</span></code></a> gained a new color conversion API with
full support for the alpha channel. The main public functions are
<a class="reference internal" href="../api/_as_gen/matplotlib.colors.is_color_like.html#matplotlib.colors.is_color_like" title="matplotlib.colors.is_color_like"><code class="xref py py-func docutils literal"><span class="pre">is_color_like()</span></code></a>, <a class="reference internal" href="../api/_as_gen/matplotlib.colors.to_rgba.html#matplotlib.colors.to_rgba" title="matplotlib.colors.to_rgba"><code class="xref py py-func docutils literal"><span class="pre">matplotlib.colors.to_rgba()</span></code></a>,
<a class="reference internal" href="../api/_as_gen/matplotlib.colors.to_rgba_array.html#matplotlib.colors.to_rgba_array" title="matplotlib.colors.to_rgba_array"><code class="xref py py-func docutils literal"><span class="pre">matplotlib.colors.to_rgba_array()</span></code></a> and <a class="reference internal" href="../api/_as_gen/matplotlib.colors.to_hex.html#matplotlib.colors.to_hex" title="matplotlib.colors.to_hex"><code class="xref py py-func docutils literal"><span class="pre">to_hex()</span></code></a>.
RGBA quadruplets are encoded in hex format as <code class="xref py py-obj docutils literal"><span class="pre">#rrggbbaa</span></code>.</p>
<p>A side benefit is that the Qt options editor now allows setting the alpha
channel of the artists as well.</p>
</div>
<div class="section" id="new-configuration-rcparams">
<h3><a class="toc-backref" href="#id5">New Configuration (rcParams)</a><a class="headerlink" href="#new-configuration-rcparams" title="Permalink to this headline">¶</a></h3>
<p>New rcparams added</p>
<table border="1" class="docutils">
<colgroup>
<col width="40%" />
<col width="60%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Parameter</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><code class="xref py py-obj docutils literal"><span class="pre">date.autoformatter.year</span></code></td>
<td>format string for ‘year’ scale dates</td>
</tr>
<tr class="row-odd"><td><code class="xref py py-obj docutils literal"><span class="pre">date.autoformatter.month</span></code></td>
<td>format string for ‘month’ scale dates</td>
</tr>
<tr class="row-even"><td><code class="xref py py-obj docutils literal"><span class="pre">date.autoformatter.day</span></code></td>
<td>format string for ‘day’ scale dates</td>
</tr>
<tr class="row-odd"><td><code class="xref py py-obj docutils literal"><span class="pre">date.autoformatter.hour</span></code></td>
<td>format string for ‘hour’ scale times</td>
</tr>
<tr class="row-even"><td><code class="xref py py-obj docutils literal"><span class="pre">date.autoformatter.minute</span></code></td>
<td>format string for ‘minute’ scale times</td>
</tr>
<tr class="row-odd"><td><code class="xref py py-obj docutils literal"><span class="pre">date.autoformatter.second</span></code></td>
<td>format string for ‘second’ scale times</td>
</tr>
<tr class="row-even"><td><code class="xref py py-obj docutils literal"><span class="pre">date.autoformatter.microsecond</span></code></td>
<td>format string for ‘microsecond’ scale times</td>
</tr>
<tr class="row-odd"><td><code class="xref py py-obj docutils literal"><span class="pre">scatter.marker</span></code></td>
<td>default marker for scatter plot</td>
</tr>
<tr class="row-even"><td><code class="xref py py-obj docutils literal"><span class="pre">svg.hashsalt</span></code></td>
<td>see note</td>
</tr>
<tr class="row-odd"><td><code class="xref py py-obj docutils literal"><span class="pre">xtick.top</span></code>, <code class="xref py py-obj docutils literal"><span class="pre">xtick.minor.top</span></code>,
<code class="xref py py-obj docutils literal"><span class="pre">xtick.major.top</span></code>
<code class="xref py py-obj docutils literal"><span class="pre">xtick.bottom</span></code>,
<code class="xref py py-obj docutils literal"><span class="pre">xtick.minor.bottom</span></code>,
<code class="xref py py-obj docutils literal"><span class="pre">xtick.major.bottom</span></code>
<code class="xref py py-obj docutils literal"><span class="pre">ytick.left</span></code>, <code class="xref py py-obj docutils literal"><span class="pre">ytick.minor.left</span></code>,
<code class="xref py py-obj docutils literal"><span class="pre">ytick.major.left</span></code>
<code class="xref py py-obj docutils literal"><span class="pre">ytick.right</span></code>,
<code class="xref py py-obj docutils literal"><span class="pre">ytick.minor.right</span></code>,
<code class="xref py py-obj docutils literal"><span class="pre">ytick.major.right</span></code></td>
<td>Control where major and minor ticks are drawn.
The global values are <code class="xref py py-obj docutils literal"><span class="pre">and</span></code> ed with the
corresponding major/minor values.</td>
</tr>
<tr class="row-even"><td><code class="xref py py-obj docutils literal"><span class="pre">hist.bins</span></code></td>
<td>The default number of bins to use in
<a class="reference internal" href="../api/_as_gen/matplotlib.axes.Axes.hist.html#matplotlib.axes.Axes.hist" title="matplotlib.axes.Axes.hist"><code class="xref py py-obj docutils literal"><span class="pre">hist</span></code></a>. This can be an
<a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)"><code class="xref py py-obj docutils literal"><span class="pre">int</span></code></a>, a list of floats, or <code class="docutils literal"><span class="pre">'auto'</span></code> if numpy
>= 1.11 is installed.</td>
</tr>
<tr class="row-odd"><td><code class="xref py py-obj docutils literal"><span class="pre">lines.scale_dashes</span></code></td>
<td>Whether the line dash patterns should scale with
linewidth.</td>
</tr>
<tr class="row-even"><td><code class="xref py py-obj docutils literal"><span class="pre">axes.formatter.offset_threshold</span></code></td>
<td>Minimum number of digits saved in tick labels
that triggers using an offset.</td>
</tr>
</tbody>
</table>
<div class="section" id="added-svg-hashsalt-key-to-rcparams">
<h4>Added <code class="docutils literal"><span class="pre">svg.hashsalt</span></code> key to rcParams<a class="headerlink" href="#added-svg-hashsalt-key-to-rcparams" title="Permalink to this headline">¶</a></h4>
<p>If <code class="docutils literal"><span class="pre">svg.hashsalt</span></code> is <code class="docutils literal"><span class="pre">None</span></code> (which it is by default), the svg
backend uses <code class="docutils literal"><span class="pre">uuid4</span></code> to generate the hash salt. If it is not
<code class="docutils literal"><span class="pre">None</span></code>, it must be a string that is used as the hash salt instead of
<code class="docutils literal"><span class="pre">uuid4</span></code>. This allows for deterministic SVG output.</p>
</div>
<div class="section" id="removed-the-svg-image-noscale-rcparam">
<h4>Removed the <code class="docutils literal"><span class="pre">svg.image_noscale</span></code> rcParam<a class="headerlink" href="#removed-the-svg-image-noscale-rcparam" title="Permalink to this headline">¶</a></h4>
<p>As a result of the extensive changes to image handling, the
<code class="docutils literal"><span class="pre">svg.image_noscale</span></code> rcParam has been removed. The same
functionality may be achieved by setting <code class="docutils literal"><span class="pre">interpolation='none'</span></code> on
individual images or globally using the <code class="docutils literal"><span class="pre">image.interpolation</span></code>
rcParam.</p>
</div>
</div>
<div class="section" id="qualitative-colormaps">
<h3><a class="toc-backref" href="#id6">Qualitative colormaps</a><a class="headerlink" href="#qualitative-colormaps" title="Permalink to this headline">¶</a></h3>
<p>ColorBrewer’s “qualitative” colormaps (“Accent”, “Dark2”, “Paired”,
“Pastel1”, “Pastel2”, “Set1”, “Set2”, “Set3”) were intended for discrete
categorical data, with no implication of value, and therefore have been
converted to <code class="docutils literal"><span class="pre">ListedColormap</span></code> instead of <code class="docutils literal"><span class="pre">LinearSegmentedColormap</span></code>, so
the colors will no longer be interpolated and they can be used for
choropleths, labeled image features, etc.</p>
</div>
<div class="section" id="axis-offset-label-now-responds-to-labelcolor">
<h3><a class="toc-backref" href="#id7">Axis offset label now responds to <code class="xref py py-obj docutils literal"><span class="pre">labelcolor</span></code></a><a class="headerlink" href="#axis-offset-label-now-responds-to-labelcolor" title="Permalink to this headline">¶</a></h3>
<p>Axis offset labels are now colored the same as axis tick markers when <code class="xref py py-obj docutils literal"><span class="pre">labelcolor</span></code> is altered.</p>
</div>
<div class="section" id="improved-offset-text-choice">
<h3><a class="toc-backref" href="#id8">Improved offset text choice</a><a class="headerlink" href="#improved-offset-text-choice" title="Permalink to this headline">¶</a></h3>
<p>The default offset-text choice was changed to only use significant digits that
are common to all ticks (e.g. 1231..1239 -> 1230, instead of 1231), except when
they straddle a relatively large multiple of a power of ten, in which case that
multiple is chosen (e.g. 1999..2001->2000).</p>
</div>
<div class="section" id="style-parameter-blacklist">
<h3><a class="toc-backref" href="#id9">Style parameter blacklist</a><a class="headerlink" href="#style-parameter-blacklist" title="Permalink to this headline">¶</a></h3>
<p>In order to prevent unexpected consequences from using a style, style
files are no longer able to set parameters that affect things
unrelated to style. These parameters include:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="s1">'interactive'</span><span class="p">,</span> <span class="s1">'backend'</span><span class="p">,</span> <span class="s1">'backend.qt4'</span><span class="p">,</span> <span class="s1">'webagg.port'</span><span class="p">,</span>
<span class="s1">'webagg.port_retries'</span><span class="p">,</span> <span class="s1">'webagg.open_in_browser'</span><span class="p">,</span> <span class="s1">'backend_fallback'</span><span class="p">,</span>
<span class="s1">'toolbar'</span><span class="p">,</span> <span class="s1">'timezone'</span><span class="p">,</span> <span class="s1">'datapath'</span><span class="p">,</span> <span class="s1">'figure.max_open_warning'</span><span class="p">,</span>
<span class="s1">'savefig.directory'</span><span class="p">,</span> <span class="s1">'tk.window_focus'</span><span class="p">,</span> <span class="s1">'docstring.hardcopy'</span>
</pre></div>
</div>
</div>
<div class="section" id="change-in-default-font">
<h3><a class="toc-backref" href="#id10">Change in default font</a><a class="headerlink" href="#change-in-default-font" title="Permalink to this headline">¶</a></h3>
<p>The default font used by matplotlib in text has been changed to DejaVu Sans and
DejaVu Serif for the sans-serif and serif families, respectively. The DejaVu
font family is based on the previous matplotlib default –Bitstream Vera– but
includes a much wider range of characters.</p>
<p>The default mathtext font has been changed from Computer Modern to the DejaVu
family to maintain consistency with regular text. Two new options for the
<code class="docutils literal"><span class="pre">mathtext.fontset</span></code> configuration parameter have been added: <code class="docutils literal"><span class="pre">dejavusans</span></code>
(default) and <code class="docutils literal"><span class="pre">dejavuserif</span></code>. Both of these options use DejaVu glyphs whenever
possible and fall back to STIX symbols when a glyph is not found in DejaVu. To
return to the previous behavior, set the rcParam <code class="docutils literal"><span class="pre">mathtext.fontset</span></code> to <code class="docutils literal"><span class="pre">cm</span></code>.</p>
</div>
<div class="section" id="faster-text-rendering">
<h3><a class="toc-backref" href="#id11">Faster text rendering</a><a class="headerlink" href="#faster-text-rendering" title="Permalink to this headline">¶</a></h3>
<p>Rendering text in the Agg backend is now less fuzzy and about 20%
faster to draw.</p>
</div>
<div class="section" id="improvements-for-the-qt-figure-options-editor">
<h3><a class="toc-backref" href="#id12">Improvements for the Qt figure options editor</a><a class="headerlink" href="#improvements-for-the-qt-figure-options-editor" title="Permalink to this headline">¶</a></h3>
<p>Various usability improvements were implemented for the Qt figure options
editor, among which:</p>
<ul class="simple">
<li>Line style entries are now sorted without duplicates.</li>
<li>The colormap and normalization limits can now be set for images.</li>
<li>Line edits for floating values now display only as many digits as necessary
to avoid precision loss. An important bug was also fixed regarding input
validation using Qt5 and a locale where the decimal separator is “,”.</li>
<li>The axes selector now uses shorter, more user-friendly names for axes, and
does not crash if there are no axes.</li>
<li>Line and image entries using the default labels (“_lineX”, “_imageX”) are now
sorted numerically even when there are more than 10 entries.</li>
</ul>
</div>
<div class="section" id="improved-image-support">
<h3><a class="toc-backref" href="#id13">Improved image support</a><a class="headerlink" href="#improved-image-support" title="Permalink to this headline">¶</a></h3>
<p>Prior to version 2.0, matplotlib resampled images by first applying
the color map and then resizing the result. Since the resampling was
performed on the colored image, this introduced colors in the output
image that didn’t actually exist in the color map. Now, images are
resampled first (and entirely in floating-point, if the input image is
floating-point), and then the color map is applied.</p>
<p>In order to make this important change, the image handling code was
almost entirely rewritten. As a side effect, image resampling uses
less memory and fewer datatype conversions than before.</p>
<p>The experimental private feature where one could “skew” an image by
setting the private member <code class="docutils literal"><span class="pre">_image_skew_coordinate</span></code> has been
removed. Instead, images will obey the transform of the axes on which
they are drawn.</p>
<div class="section" id="non-linear-scales-on-image-plots">
<h4>Non-linear scales on image plots<a class="headerlink" href="#non-linear-scales-on-image-plots" title="Permalink to this headline">¶</a></h4>
<p><code class="xref py py-func docutils literal"><span class="pre">imshow()</span></code> now draws data at the requested points in data space after the
application of non-linear scales.</p>
<p>The image on the left demonstrates the new, correct behavior.
The old behavior can be recreated using <code class="xref py py-func docutils literal"><span class="pre">pcolormesh()</span></code> as
demonstrated on the right.</p>
<p>(<a class="reference external" href="../users/whats_new-1.py">Source code</a>, <a class="reference external" href="../users/whats_new-1.png">png</a>, <a class="reference external" href="../users/whats_new-1.pdf">pdf</a>)</p>
<div class="figure">
<img alt="../_images/whats_new-1.png" src="../_images/whats_new-1.png" />
</div>
<p>This can be understood by analogy to plotting a histogram with linearly spaced bins
with a logarithmic x-axis. Equal sized bins will be displayed as wider for small
<em>x</em> and narrower for large <em>x</em>.</p>
</div>
</div>
<div class="section" id="support-for-hidpi-retina-displays-in-the-nbagg-and-webagg-backends">
<h3><a class="toc-backref" href="#id14">Support for HiDPI (Retina) displays in the NbAgg and WebAgg backends</a><a class="headerlink" href="#support-for-hidpi-retina-displays-in-the-nbagg-and-webagg-backends" title="Permalink to this headline">¶</a></h3>
<p>The NbAgg and WebAgg backends will now use the full resolution of your
high-pixel-density display.</p>
</div>
<div class="section" id="change-in-the-default-animation-codec">
<h3><a class="toc-backref" href="#id15">Change in the default animation codec</a><a class="headerlink" href="#change-in-the-default-animation-codec" title="Permalink to this headline">¶</a></h3>
<p>The default animation codec has been changed from <code class="docutils literal"><span class="pre">mpeg4</span></code> to <code class="docutils literal"><span class="pre">h264</span></code>,
which is more efficient. It can be set via the <code class="docutils literal"><span class="pre">animation.codec</span></code> rcParam.</p>
</div>
<div class="section" id="deprecated-support-for-mencoder-in-animation">
<h3><a class="toc-backref" href="#id16">Deprecated support for mencoder in animation</a><a class="headerlink" href="#deprecated-support-for-mencoder-in-animation" title="Permalink to this headline">¶</a></h3>
<p>The use of mencoder for writing video files with mpl is problematic;
switching to ffmpeg is strongly advised. All support for mencoder
will be removed in version 2.2.</p>
</div>
<div class="section" id="boxplot-zorder-keyword-argument">
<h3><a class="toc-backref" href="#id17">Boxplot Zorder Keyword Argument</a><a class="headerlink" href="#boxplot-zorder-keyword-argument" title="Permalink to this headline">¶</a></h3>
<p>The <code class="docutils literal"><span class="pre">zorder</span></code> parameter now exists for <code class="xref py py-func docutils literal"><span class="pre">boxplot()</span></code>. This allows the zorder
of a boxplot to be set in the plotting function call.</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">boxplot</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">arange</span><span class="p">(</span><span class="mi">10</span><span class="p">),</span> <span class="n">zorder</span><span class="o">=</span><span class="mi">10</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="filled-and-x-markers">
<h3><a class="toc-backref" href="#id18">Filled <code class="docutils literal"><span class="pre">+</span></code> and <code class="docutils literal"><span class="pre">x</span></code> markers</a><a class="headerlink" href="#filled-and-x-markers" title="Permalink to this headline">¶</a></h3>
<p>New fillable <em>plus</em> and <em>x</em> markers have been added. See
the <a class="reference internal" href="../api/markers_api.html#module-matplotlib.markers" title="matplotlib.markers"><code class="xref py py-mod docutils literal"><span class="pre">markers</span></code></a> module and
<a class="reference internal" href="../gallery/lines_bars_and_markers/marker_reference.html#sphx-glr-gallery-lines-bars-and-markers-marker-reference-py"><span class="std std-ref">marker reference</span></a>
examples.</p>
</div>
<div class="section" id="rcount-and-ccount-for-plot-surface">
<h3><a class="toc-backref" href="#id19"><code class="xref py py-obj docutils literal"><span class="pre">rcount</span></code> and <code class="xref py py-obj docutils literal"><span class="pre">ccount</span></code> for <code class="xref py py-obj docutils literal"><span class="pre">plot_surface()</span></code></a><a class="headerlink" href="#rcount-and-ccount-for-plot-surface" title="Permalink to this headline">¶</a></h3>
<p>As of v2.0, mplot3d’s <code class="xref py py-func docutils literal"><span class="pre">plot_surface()</span></code> now
accepts <code class="xref py py-obj docutils literal"><span class="pre">rcount</span></code> and <code class="xref py py-obj docutils literal"><span class="pre">ccount</span></code> arguments for controlling the sampling of the
input data for plotting. These arguments specify the maximum number of
evenly spaced samples to take from the input data. These arguments are
also the new default sampling method for the function, and is
considered a style change.</p>
<p>The old <code class="xref py py-obj docutils literal"><span class="pre">rstride</span></code> and <code class="xref py py-obj docutils literal"><span class="pre">cstride</span></code> arguments, which specified the size of the
evenly spaced samples, become the default when ‘classic’ mode is invoked,
and are still available for use. There are no plans for deprecating these
arguments.</p>
</div>
<div class="section" id="streamplot-zorder-keyword-argument-changes">
<h3><a class="toc-backref" href="#id20">Streamplot Zorder Keyword Argument Changes</a><a class="headerlink" href="#streamplot-zorder-keyword-argument-changes" title="Permalink to this headline">¶</a></h3>
<p>The <code class="docutils literal"><span class="pre">zorder</span></code> parameter for <code class="xref py py-func docutils literal"><span class="pre">streamplot()</span></code> now has default
value of <code class="docutils literal"><span class="pre">None</span></code> instead of <code class="docutils literal"><span class="pre">2</span></code>. If <code class="docutils literal"><span class="pre">None</span></code> is given as <code class="docutils literal"><span class="pre">zorder</span></code>,
<code class="xref py py-func docutils literal"><span class="pre">streamplot()</span></code> has a default <code class="docutils literal"><span class="pre">zorder</span></code> of
<code class="docutils literal"><span class="pre">matplotlib.lines.Line2D.zorder</span></code>.</p>
</div>
<div class="section" id="extension-to-matplotlib-backend-bases-graphicscontextbase">
<span id="gc-get-hatch-color-wn"></span><h3><a class="toc-backref" href="#id21">Extension to <a class="reference internal" href="../api/backend_bases_api.html#matplotlib.backend_bases.GraphicsContextBase" title="matplotlib.backend_bases.GraphicsContextBase"><code class="xref py py-obj docutils literal"><span class="pre">matplotlib.backend_bases.GraphicsContextBase</span></code></a></a><a class="headerlink" href="#extension-to-matplotlib-backend-bases-graphicscontextbase" title="Permalink to this headline">¶</a></h3>
<p>To support standardizing hatch behavior across the backends we ship
the <a class="reference internal" href="../api/backend_bases_api.html#matplotlib.backend_bases.GraphicsContextBase.get_hatch_color" title="matplotlib.backend_bases.GraphicsContextBase.get_hatch_color"><code class="xref py py-obj docutils literal"><span class="pre">matplotlib.backend_bases.GraphicsContextBase.get_hatch_color</span></code></a>
method as added to <a class="reference internal" href="../api/backend_bases_api.html#matplotlib.backend_bases.GraphicsContextBase" title="matplotlib.backend_bases.GraphicsContextBase"><code class="xref py py-obj docutils literal"><span class="pre">matplotlib.backend_bases.GraphicsContextBase</span></code></a>.
This is only used during the render process in the backends we ship so
will not break any third-party backends.</p>
<p>If you maintain a third-party backend which extends
<a class="reference internal" href="../api/backend_bases_api.html#matplotlib.backend_bases.GraphicsContextBase" title="matplotlib.backend_bases.GraphicsContextBase"><code class="xref py py-obj docutils literal"><span class="pre">GraphicsContextBase</span></code></a> this method is now
available to you and should be used to color hatch patterns.</p>
</div>
</div>
<div class="section" id="previous-whats-new">
<h2><a class="toc-backref" href="#id22">Previous Whats New</a><a class="headerlink" href="#previous-whats-new" title="Permalink to this headline">¶</a></h2>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="prev_whats_new/whats_new_0.98.4.html">New in matplotlib 0.98.4</a></li>
<li class="toctree-l1"><a class="reference internal" href="prev_whats_new/whats_new_0.99.html">New in matplotlib 0.99</a></li>
<li class="toctree-l1"><a class="reference internal" href="prev_whats_new/whats_new_1.0.html">New in matplotlib 1.0</a></li>
<li class="toctree-l1"><a class="reference internal" href="prev_whats_new/whats_new_1.1.html">New in matplotlib 1.1</a></li>
<li class="toctree-l1"><a class="reference internal" href="prev_whats_new/whats_new_1.2.html">New in matplotlib 1.2</a></li>
<li class="toctree-l1"><a class="reference internal" href="prev_whats_new/whats_new_1.2.2.html">New in matplotlib 1.2.2</a></li>
<li class="toctree-l1"><a class="reference internal" href="prev_whats_new/whats_new_1.3.html">New in matplotlib 1.3</a></li>
<li class="toctree-l1"><a class="reference internal" href="prev_whats_new/whats_new_1.4.html">New in matplotlib 1.4</a></li>
<li class="toctree-l1"><a class="reference internal" href="prev_whats_new/whats_new_1.5.html">New in matplotlib 1.5</a></li>
<li class="toctree-l1"><a class="reference internal" href="prev_whats_new/changelog.html">List of changes to Matplotlib prior to 2015</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="footer">
© Copyright 2002 - 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 2012 - 2017 The Matplotlib development team.
Last updated on Jul 16, 2017.
Created using <a
href="http://sphinx-doc.org/">Sphinx</a> 1.6.2.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-55954603-1', 'auto');
ga('send', 'pageview');
</script>
</body>
<footer>
<!--Flipcause Integration v3.0// Flipcause Integration Instructions:
Install the following code block once in the website Header (after <head> tag) -->
<style>
.fc-black_overlay{
display:none; position: fixed; z-index:1000001; top: 0%;left: 0%;width: 100%;height: 100%;
background-color: black; filter: alpha(opacity=50); cursor:pointer; opacity:0.5;
}
.fc-white_content {
opacity:1; display:none; margin-top: -320px; margin-left: -485px; width:970px; height:640px;
position:fixed; top:50%; left:50%; border: none;z-index:1000002;overflow: auto;
}
.fc-main-box{
opacity:1; display:none; margin:15px auto 0 auto; width:930px; position:relative; z-index:1000003;
}
.fc-widget_close{
opacity:1; content:url(http://i1338.photobucket.com/albums/o691/WeCause/X_zpse4a7e538.png);
position:absolute; z-index=1000004; right:-16px; top:-16px; display:block; cursor:pointer;
}
.floating_button{
display: block; margin-top: 0px; margin-left: 0px; width:auto ; height: auto;
position:fixed; z-index:999999; overflow: auto;
}
@keyframes backfadesin {
from { opacity:0; }
to {opacity:.5;}
}
@-moz-keyframes backfadesin {
from { opacity:0; }
to {opacity:.5;}
}
@-webkit-keyframes backfadesin {
from { opacity:0; }
to {opacity:.5;}
}
@-o-keyframes backfadesin {
from { opacity:0; }
to {opacity:.5;}
}
@-ms-keyframes backfadesin {
from { opacity:0; }
to {opacity:.5;}
}
@keyframes fadesin {
0%{ opacity:0; }
50%{ opacity:0; }
75% {opacity: 0; transform: translateY(20px);}
100% {opacity: 1; transform: translateY(0);}
}
@-moz-keyframes fadesin {
0%{ opacity:0; }
50%{ opacity:0; }
75% {opacity: 0; -moz-transform: translateY(20px);}
100% {opacity: 1; -moz-transform: translateY(0);}
}
@-webkit-keyframes fadesin {
0%{ opacity:0; }
50%{ opacity:0; }
75% {opacity: 0; -webkit-transform: translateY(20px);}
100% {opacity: 1; -webkit-transform: translateY(0);}
}
@-o-keyframes fadesin {
0%{ opacity:0; }
50%{ opacity:0; }
75% {opacity: 0; -o-transform: translateY(20px);}
100% {opacity: 1; -o-transform: translateY(0);}
}
@-ms-keyframes fadesin {
0%{ opacity:0; }
50%{ opacity:0; }
75% {opacity: 0; -ms-transform: translateY(20px);}
100% {opacity: 1; -ms-transform: translateY(0);}
}
</style>
<script>
function open_window(cause_id) {
var protocol=String(document.location.protocol);
var new_url;
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){
new_url="https://www.flipcause.com/widget/"+cause_id
window.open(new_url);
}
else {
document.getElementById("fc-fade").style.display = "block";
document.getElementById("fc-fade").style.webkitAnimation = "backfadesin 1s";
document.getElementById("fc-fade").style.animation = "backfadesin 1s";
document.getElementById("fc-fade").style.mozAnimation = "backfadesin 1s";
document.getElementById("fc-light").style.display = "block";
document.getElementById("fc-light").style.webkitAnimation = "fadesin 1.5s";
document.getElementById("fc-light").style.animation = "fadesin 1.5s";
document.getElementById("fc-light").style.mozAnimation = "fadesin 1.5s";
document.getElementById("fc-main").style.display = "block";
document.getElementById("fc-main").style.webkitAnimation = "fadesin 1.5s";
document.getElementById("fc-main").style.animation = "fadesin 1.5s";
document.getElementById("fc-main").style.mozAnimation = "fadesin 1.5s";
document.getElementById("fc-close").style.display = "block";
document.getElementById("fc-close").style.webkitAnimation = "fadesin 1.5s";
document.getElementById("fc-close").style.animation = "fadesin 1.5s";
document.getElementById("fc-close").style.mozAnimation = "fadesin 1.5s";
document.getElementById("fc-myFrame").style.display = "block";
document.getElementById("fc-myFrame").style.webkitAnimation = "fadesin 1.5s";
document.getElementById("fc-myFrame").style.animation = "fadesin 1.5s";
document.getElementById("fc-myFrame").style.mozAnimation = "fadesin 1.5s";
document.getElementById("fc-myFrame").src="https://www.flipcause.com/widget/"+cause_id;
}
}
function close_window() {
document.getElementById("fc-fade").style.display="none";
document.getElementById("fc-light").style.display="none";
document.getElementById("fc-main").style.display="none";
document.getElementById("fc-close").style.display="none";
document.getElementById("fc-myFrame").style.display="none";
}
</script>
<div id="fc-fade" class="fc-black_overlay" onclick="close_window()"></div>
<div id="fc-light" class="fc-white_content">
<div id="fc-main" class="fc-main-box">
<div id="fc-close" class="fc-widget_close" onclick="close_window()">
</div><iframe id="fc-myFrame" iframe height="580" width="925" style="border: 0;
border-radius:5px 5px 5px 5px; box-shadow:0 0 8px rgba(0, 0, 0, 0.5);" scrolling="no" src=""></iframe></div>
</div>
<!--END Flipcause Main Integration Code-->
</footer>
</html>