Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 361d92b

Browse files
committed
Some more rearranging and fixing up whats_new.
1 parent eb96eb3 commit 361d92b

File tree

1 file changed

+78
-79
lines changed

1 file changed

+78
-79
lines changed

doc/users/whats_new.rst

Lines changed: 78 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,74 @@ The 'default' style will give you matplotlib's latest plotting styles::
172172

173173
matplotlib.style.use('default')
174174

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+
175243

176244
Widgets
177245
-------
@@ -224,7 +292,7 @@ New plotting features
224292

225293

226294
Auto-wrapping Text
227-
------------------
295+
``````````````````
228296

229297
Added the keyword argument "wrap" to Text, which automatically breaks
230298
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``.
327395
ax.axis('square')
328396

329397

330-
updated figimage to take optional resize parameter
398+
Updated figimage to take optional resize parameter
331399
``````````````````````````````````````````````````
332400

333401
Added the ability to plot simple 2D-Array using ``plt.figimage(X, resize=True)``.
@@ -339,8 +407,8 @@ around the image.
339407
data = np.random.random([500, 500])
340408
plt.figimage(data, resize=True)
341409

342-
Updated Figure.savefig()
343-
````````````````````````
410+
Updated Figure.savefig() can now use figure's dpi
411+
`````````````````````````````````````````````````
344412

345413
Added support to save the figure with the same dpi as the figure on the
346414
screen using `dpi='figure'`.
@@ -352,8 +420,8 @@ Example::
352420
f.savefig('output.png', dpi='figure') # output savefig dpi set to 25 (same as figure)
353421

354422

355-
Updated Table and to control edge visibility
356-
````````````````````````````````````````````
423+
Updated Table to control edge visibility
424+
````````````````````````````````````````
357425

358426
Added the ability to toggle the visibility of lines in Tables.
359427
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.
509577
Per-page pdf notes in multi-page pdfs (PdfPages)
510578
````````````````````````````````````````````````
511579

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
513582
attachment of simple text notes to pages in a multi-page pdf of
514583
figures. The new note is visible in the list of pdf annotations in a
515584
viewer that has this facility (Adobe Reader, OSX Preview, Skim,
516585
etc.). Per default the note itself is kept off-page to prevent it to
517586
appear in print-outs.
518587

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
520589
added to the correct figure.
521590

522591
Updated fignum_exists to take figure name
523592
`````````````````````````````````````````
524593

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
526595
instead of just the figure number.
527596
Example::
528597

@@ -610,76 +679,6 @@ that are called automatically whenever it is toggled.
610679
A full example is located in :ref:`user_interfaces-toolmanager`
611680

612681

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-
683682
cbook.is_sequence_of_strings recognizes string objects
684683
------------------------------------------------------
685684

0 commit comments

Comments
 (0)