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

Skip to content

Commit b62acc8

Browse files
committed
First draft of the v1.1.0 "What's New" section.
Also fixed an error with stem() docs.
1 parent 1283b46 commit b62acc8

2 files changed

Lines changed: 131 additions & 7 deletions

File tree

doc/users/whats_new.rst

Lines changed: 127 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,130 @@ What's new in matplotlib
77
This page just covers the highlights -- for the full story, see the
88
`CHANGELOG <http://matplotlib.sourceforge.net/_static/CHANGELOG>`_
99

10+
11+
.. _whats-new-1-1:
12+
13+
new in matplotlib-1.1
14+
=====================
15+
16+
Animation
17+
---------
18+
19+
Ryan May invested significant effort to create a backend-independent
20+
framework for creating animated figures. The :mod:`~matplotlib.animation`
21+
module is intended to replace the difficult-to-understand,
22+
backend-specific examples that has existed in the examples listing.
23+
24+
This framework should be considered a beta feature for matplotlib, but
25+
we highly encourage users to try it out and provide feedback.
26+
27+
Tight Layout
28+
------------
29+
30+
A frequent issue raised by users of matplotlib is the lack of a layout
31+
engine to nicely space out elements of the plots. While we still adhere
32+
to the philosphy of giving users complete control over the placement of
33+
plot elements, a :mod:`~matplotlib.tight_layout` module was created to
34+
address the most common layout issues.
35+
36+
:mod:`~matplotlib.tight_layout` will adjust the spacing between subplots
37+
so that the axis labels do not overlap with neighboring subplots.
38+
39+
Need to acknowledge author
40+
41+
Full IPython 0.11 compatibility
42+
-------------------------------
43+
44+
The `IPython <http://ipython.org>`_ team has recently released v0.11 of
45+
their interactive python shell. The matplotlib and IPython teams worked
46+
to ensure that our packages work well together. This release of matplotlib
47+
is fully compatible with ipython.
48+
49+
Legend
50+
------
51+
52+
Jae-Joon Lee has been working on revamping how plot legends are handled
53+
in matplotlib. This has resulted in some immediate enhancements. First,
54+
legends for :func:`~matplotlib.pyplot.stem` plots will now display
55+
correctly. Second, the 'best' placement of a legend has been improved
56+
in the presence of NaNs.
57+
58+
mplot3d
59+
-------
60+
61+
In continuing the efforts to make 3D plotting in matplotlib just as easy
62+
as 2D plotting, Ben Root has made several improvements to the
63+
:mod:`~mpl_toolkits.mplot3d` module.
64+
65+
* :class:`~mpl_toolkits.mplot3d.axes3d.Axes3D` has been
66+
improved to bring the class towards feature-parity with regular
67+
Axes objects
68+
69+
* Documentation for the mplot3d module was significantly expanded.
70+
71+
* Axis labels and orientation improved
72+
73+
* Ticker offset display added
74+
75+
* :func:`~mpl_toolkits.mplot3d.axes3d.Axes3D.contourf`
76+
gains *zdir* and *offset* kwargs.
77+
78+
* Most 3D plotting functions now support empty inputs
79+
80+
Numerix support removed
81+
-----------------------
82+
83+
After more than two years of deprecation warnings, Numerix support has
84+
now been completely removed from matplotlib.
85+
86+
Markers
87+
-------
88+
89+
The list of available markers for :func:`~matplotlib.pyplot.plot` and
90+
:func:`~matplotlib.pyplot.scatter` has now been merged. While they
91+
were mostly similar, some markers existed for one function, but not
92+
the other. This merge did result in a conflict for the 'd' diamond
93+
marker. Now, 'd' will be interpreated to always mean "thin" diamond
94+
while 'D' will mean "regular" diamond.
95+
96+
Thanks to Michael Droettboom for this effort.
97+
98+
Other improvements
99+
------------------
100+
101+
* Unit support for polar axes and :func:`~matplotlib.axes.Axes.arrow`
102+
103+
* :class:`~matplotlib.projections.polar.PolarAxes` gains
104+
'set_theta_direction', 'set_theta_zero_direction' and
105+
'set_theta_offset' functions.
106+
107+
* Fixed error in argument handling for tri-functions such as
108+
:func:`~matplotlib.pyplot.tripcolor`
109+
110+
* 'axes.labelweight' parameter added to rcParams.
111+
112+
* For :func:`~matplotlib.pyplot.imshow`, *interpolation='nearest'* will
113+
now always perform an interpolation. A 'none' option has been added to
114+
indicate no interpolation at all.
115+
116+
* An error in the Hammer projection has been fixed.
117+
118+
* *clabel* for :func:`~matplotlib.pyplot.contour` now accepts a callable.
119+
Thanks to Daniel Hyams for the original patch!
120+
121+
* Jae-Joon Lee added the :class:`~mpl_toolkits.axes_grid1.axes_divider.HBox`
122+
and :class:`~mpl_toolkits.axes_grid1.axes_divider.VBox` classes.
123+
124+
* Christoph Gohike improved memory usage in :func:`~matplotlib.pyplot.imshow`.
125+
126+
* :func:`~matplotlib.pyplot.scatter` now accepts empty inputs.
127+
128+
* The behavior for 'symlog' scale has been fixed, but this may result
129+
in some minor changes to existing plots.
130+
131+
132+
.. _whats-new-1-0:
133+
10134
new in matplotlib-1.0
11135
======================
12136

@@ -53,7 +177,7 @@ talented developers for years. :func:`~matplotlib.pyplot.contourf`
53177
now handles interior masked regions, and the boundaries of line and
54178
filled contours coincide.
55179

56-
Additionally, he has contributed a new module `matplotlib.tri` and
180+
Additionally, he has contributed a new module :mod:`~matplotlib.tri` and
57181
helper function :func:`~matplotlib.pyplot.triplot` for creating and
58182
plotting unstructured triangular grids.
59183

@@ -139,6 +263,8 @@ help from Jae-Joon Lee, Michael Droettboom, Christoph Gohlke and
139263
Michiel de Hoon.
140264

141265

266+
.. _whats-new-0-99:
267+
142268
new in matplotlib-0.99
143269
======================
144270

lib/matplotlib/axes.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4904,15 +4904,13 @@ def stem(self, x, y, linefmt='b-', markerfmt='bo', basefmt='r-',
49044904
*baseline*).
49054905
49064906
.. seealso::
4907+
This `document <http://www.mathworks.com/access/helpdesk/help/techdoc/ref/stem.html>`_
4908+
for details.
49074909
4908-
`this document`__
4909-
for details
49104910
4911-
:file:`examples/pylab_examples/stem_plot.py`
4912-
for a demo
4913-
4914-
__ http://www.mathworks.com/access/helpdesk/help/techdoc/ref/stem.html
4911+
**Example:**
49154912
4913+
.. plot:: mpl_examples/pylab_examples/stem_plot.py
49164914
"""
49174915
remember_hold=self._hold
49184916
if not self._hold: self.cla()

0 commit comments

Comments
 (0)