@@ -172,6 +172,74 @@ The 'default' style will give you matplotlib's latest plotting styles::
172
172
173
173
matplotlib.style.use('default')
174
174
175
+ Backends
176
+ --------
177
+
178
+ New backend selection
179
+ `````````````````````
180
+
181
+ The environment variable :envvar: `MPLBACKEND ` can now be used to set the
182
+ matplotlib backend.
183
+
184
+
185
+ wx backend has been updated
186
+ ```````````````````````````
187
+
188
+ The wx backend can now be used with both wxPython classic and
189
+ `Phoenix <http://wxpython.org/Phoenix/docs/html/main.html >`__.
190
+
191
+ wxPython classic has to be at least version 2.8.12 and works on Python 2.x. As
192
+ of May 2015 no official release of wxPython Phoenix is available but a
193
+ current snapshot will work on Python 2.7+ and 3.4+.
194
+
195
+ If you have multiple versions of wxPython installed, then the user code is
196
+ responsible setting the wxPython version. How to do this is
197
+ explained in the comment at the beginning of the example
198
+ `examples\user_interfaces\embedding_in_wx2.py `.
199
+
200
+ Configuration (rcParams)
201
+ ------------------------
202
+
203
+ Some parameters have been added, others have been improved.
204
+
205
+ +-------------------------+--------------------------------------------------+
206
+ | Parameter | Description |
207
+ +=========================+==================================================+
208
+ | `{x,y}axis.labelpad` | mplot3d now respects these parameters |
209
+ +-------------------------+--------------------------------------------------+
210
+ | `axes.labelpad` | Default space between the axis and the label |
211
+ +-------------------------+--------------------------------------------------+
212
+ | `errorbar.capsize` | Default length of end caps on error bars |
213
+ +-------------------------+--------------------------------------------------+
214
+ | `{x,y}tick.minor.visible`| Default visibility of minor x/y ticks |
215
+ +-------------------------+--------------------------------------------------+
216
+ | `legend.framealpha` | Default transparency of the legend frame box |
217
+ +-------------------------+--------------------------------------------------+
218
+ | `legend.facecolor` | Default facecolor of legend frame box (or |
219
+ | | ``'inherit' `` from `axes.facecolor `) |
220
+ +-------------------------+--------------------------------------------------+
221
+ | `legend.edgecolor` | Default edgecolor of legend frame box (or |
222
+ | | ``'inherit' `` from `axes.edgecolor `) |
223
+ +-------------------------+--------------------------------------------------+
224
+ | `figure.titlesize` | Default font size for figure suptitles |
225
+ +-------------------------+--------------------------------------------------+
226
+ | `figure.titleweight` | Default font weight for figure suptitles |
227
+ +-------------------------+--------------------------------------------------+
228
+ | `image.composite_image` | Whether a vector graphics backend should |
229
+ | | composite several images into a single image or |
230
+ | | not when saving. Useful when needing to edit the |
231
+ | | files further in Inkscape or other programs. |
232
+ +-------------------------+--------------------------------------------------+
233
+ | `markers.fillstyle` | Default fillstyle of markers. Possible values |
234
+ | | are ``'full' `` (the default), ``'left' ``, |
235
+ | | ``'right' ``, ``'bottom' ``, ``'top' `` and |
236
+ | | ``'none' `` |
237
+ +-------------------------+--------------------------------------------------+
238
+ | `toolbar` | Added ``'toolmanager' `` as a valid value, |
239
+ | | enabling the experimental ``ToolManager `` |
240
+ | | feature. |
241
+ +-------------------------+--------------------------------------------------+
242
+
175
243
176
244
Widgets
177
245
-------
@@ -224,7 +292,7 @@ New plotting features
224
292
225
293
226
294
Auto-wrapping Text
227
- ------------------
295
+ ``````````````````
228
296
229
297
Added the keyword argument "wrap" to Text, which automatically breaks
230
298
long lines of text when being drawn. Works for any rotated text,
@@ -327,7 +395,7 @@ and the limits are set such that ``xmax-xmin == ymax-ymin``.
327
395
ax.axis('square')
328
396
329
397
330
- updated figimage to take optional resize parameter
398
+ Updated figimage to take optional resize parameter
331
399
``````````````````````````````````````````````````
332
400
333
401
Added the ability to plot simple 2D-Array using ``plt.figimage(X, resize=True) ``.
@@ -339,8 +407,8 @@ around the image.
339
407
data = np.random.random([500, 500])
340
408
plt.figimage(data, resize=True)
341
409
342
- Updated Figure.savefig()
343
- ````````````````````````
410
+ Updated Figure.savefig() can now use figure's dpi
411
+ `````````````````````````````````````````````````
344
412
345
413
Added support to save the figure with the same dpi as the figure on the
346
414
screen using `dpi='figure' `.
@@ -352,8 +420,8 @@ Example::
352
420
f.savefig('output.png', dpi='figure') # output savefig dpi set to 25 (same as figure)
353
421
354
422
355
- Updated Table and to control edge visibility
356
- ````````````````````````````````````````````
423
+ Updated Table to control edge visibility
424
+ ````````````````````````````````````````
357
425
358
426
Added the ability to toggle the visibility of lines in Tables.
359
427
Functionality added to the :func: `pyplot.table ` factory function under
@@ -509,20 +577,21 @@ also not get overlapped by other axes in case of multiple subplots.
509
577
Per-page pdf notes in multi-page pdfs (PdfPages)
510
578
````````````````````````````````````````````````
511
579
512
- Add a new method attach_note to the PdfPages class, allowing the
580
+ Add a new method :meth: `~matplotlib.backends.backend_pdf.PdfPages.attach_note `
581
+ to the PdfPages class, allowing the
513
582
attachment of simple text notes to pages in a multi-page pdf of
514
583
figures. The new note is visible in the list of pdf annotations in a
515
584
viewer that has this facility (Adobe Reader, OSX Preview, Skim,
516
585
etc.). Per default the note itself is kept off-page to prevent it to
517
586
appear in print-outs.
518
587
519
- `PdfPages.attach_note ` needs to be called before savefig in order to be
588
+ `PdfPages.attach_note ` needs to be called before ` savefig() ` in order to be
520
589
added to the correct figure.
521
590
522
591
Updated fignum_exists to take figure name
523
592
`````````````````````````````````````````
524
593
525
- Added the ability to check the existence of a figure using it's name
594
+ Added the ability to check the existence of a figure using its name
526
595
instead of just the figure number.
527
596
Example::
528
597
@@ -610,76 +679,6 @@ that are called automatically whenever it is toggled.
610
679
A full example is located in :ref: `user_interfaces-toolmanager `
611
680
612
681
613
-
614
- Configuration (rcParams)
615
- ------------------------
616
-
617
- Some parameters have been added, others have been improved.
618
-
619
- +-------------------------+--------------------------------------------------+
620
- | Parameter | Description |
621
- +=========================+==================================================+
622
- | `{x,y}axis.labelpad` | mplot3d now respects these parameters |
623
- +-------------------------+--------------------------------------------------+
624
- | `axes.labelpad` | Default space between the axis and the label |
625
- +-------------------------+--------------------------------------------------+
626
- | `errorbar.capsize` | Default length of end caps on error bars |
627
- +-------------------------+--------------------------------------------------+
628
- | `{x,y}tick.minor.visible`| Default visibility of minor x/y ticks |
629
- +-------------------------+--------------------------------------------------+
630
- | `legend.framealpha` | Default transparency of the legend frame box |
631
- +-------------------------+--------------------------------------------------+
632
- | `legend.facecolor` | Default facecolor of legend frame box (or |
633
- | | ``'inherit' `` from `axes.facecolor `) |
634
- +-------------------------+--------------------------------------------------+
635
- | `legend.edgecolor` | Default edgecolor of legend frame box (or |
636
- | | ``'inherit' `` from `axes.edgecolor `) |
637
- +-------------------------+--------------------------------------------------+
638
- | `figure.titlesize` | Default font size for figure suptitles |
639
- +-------------------------+--------------------------------------------------+
640
- | `figure.titleweight` | Default font weight for figure suptitles |
641
- +-------------------------+--------------------------------------------------+
642
- | `image.composite_image` | Whether a vector graphics backend should |
643
- | | composite several images into a single image or |
644
- | | not when saving. Useful when needing to edit the |
645
- | | files further in Inkscape or other programs. |
646
- +-------------------------+--------------------------------------------------+
647
- | `markers.fillstyle` | Default fillstyle of markers. Possible values |
648
- | | are ``'full' `` (the default), ``'left' ``, |
649
- | | ``'right' ``, ``'bottom' ``, ``'top' `` and |
650
- | | ``'none' `` |
651
- +-------------------------+--------------------------------------------------+
652
- | `toolbar` | Added ``'toolmanager' `` as a valid value, |
653
- | | enabling the experimental ``ToolManager `` |
654
- | | feature. |
655
- +-------------------------+--------------------------------------------------+
656
-
657
- Backends
658
- --------
659
-
660
- New backend selection
661
- `````````````````````
662
-
663
- The environment variable :envvar: `MPLBACKEND ` can now be used to set the
664
- matplotlib backend.
665
-
666
-
667
- wx backend has been updated
668
- ```````````````````````````
669
-
670
- The wx backend can now be used with both wxPython classic and
671
- `Phoenix <http://wxpython.org/Phoenix/docs/html/main.html >`__.
672
-
673
- wxPython classic has to be at least version 2.8.12 and works on Python 2.x. As
674
- of May 2015 no official release of wxPython Phoenix is available but a
675
- current snapshot will work on Python 2.7+ and 3.4+.
676
-
677
- If you have multiple versions of wxPython installed, then the user code is
678
- responsible setting the wxPython version. How to do this is
679
- explained in the comment at the beginning of the example
680
- `examples\user_interfaces\embedding_in_wx2.py `.
681
-
682
-
683
682
cbook.is_sequence_of_strings recognizes string objects
684
683
------------------------------------------------------
685
684
0 commit comments