8000 Merge pull request #1122 from tonysyu/whats-new-streamplot · matplotlib/matplotlib@b70c75d · GitHub
[go: up one dir, main page]

Skip to content

Commit b70c75d

Browse files
committed
Merge pull request #1122 from tonysyu/whats-new-streamplot
DOC: Add streamplot description to What's New page
2 parents dda4ab6 + 3acc9d2 commit b70c75d

File tree

1 file changed

+26
-11
lines changed

1 file changed

+26
-11
lines changed

doc/users/whats_new.rst

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,28 +82,28 @@ minimum and maximum colorbar extensions.
8282
Set default bounding box in matplotlibrc
8383
------------------------------------------
8484

85-
Two new defaults are available in the matplotlibrc configuration file.
86-
These are savefig.bbox, which can be set to 'standard' or 'tight,' and
87-
savefig.pad_inches, which controls the bounding box padding.
85+
Two new defaults are available in the matplotlibrc configuration file:
86+
``savefig.bbox``, which can be set to 'standard' or 'tight', and
87+
``savefig.pad_inches``, which controls the bounding box padding.
8888

8989

9090
New Boxplot Functionality
9191
-------------------------
9292

9393
Users can now incorporate their own methods for computing the median and its
94-
confidence intervals into the boxplot method. For every column of data passed
95-
to boxplot, the user can specify an accompanying median and confidence
96-
interval.
97-
:meth: `matplotlib.axes.boxplot`
98-
.. plot:: examples/pylab_examples/boxplot_demo3.py
94+
confidence intervals into the :meth:`~matplotlib.axes.boxplot` method. For
95+
every column of data passed to boxplot, the user can specify an accompanying
96+
median and confidence interval.
97+
98+
.. plot:: mpl_examples/pylab_examples/boxplot_demo3.py
9999

100100

101101
New RC parameter functionality
102102
------------------------------
103103

104-
Matthew Emmett added a function and a context manager to help manage
105-
RC parameters: :func:`~matplotlib.rc_file` and
106-
:class:`~matplotlib.rc_context`. To load RC paramters from a file::
104+
Matthew Emmett added a function and a context manager to help manage RC
105+
parameters: :func:`~matplotlib.rc_file` and :class:`~matplotlib.rc_context`.
106+
To load RC parameters from a file::
107107

108108
>>> mpl.rc_file('mpl.rc')
109109

@@ -113,6 +113,21 @@ To temporarily use RC parameters::
113113
>>> ...
114114

115115

116+
Streamplot
117+
----------
118+
119+
Tom Flannaghan and Tony Yu have added a new
120+
:meth:`~matplotlib.pyplot.streamplot` function to plot the streamlines of
121+
a vector field. This has been a long-requested feature and complements the
122+
existing :meth:`~matplotlib.pyplot.quiver` function for plotting vector fields.
123+
In addition to simply plotting the streamlines of the vector field,
124+
:meth:`~matplotlib.pyplot.streamplot` allows users to map the colors and/or
125+
line widths of the streamlines to a separate parameter, such as the speed or
126+
local intensity of the vector field.
127+
128+
.. plot:: mpl_examples/pylab_examples/streamplot_demo.py
129+
130+
116131
.. _whats-new-1-1:
117132

118133
new in matplotlib-1.1

0 commit comments

Comments
 (0)
0