From 73f2b0e9caa19370ad283b94319b2c688b332d03 Mon Sep 17 00:00:00 2001 From: Tony S Yu Date: Mon, 20 Aug 2012 22:12:22 -0400 Subject: [PATCH 1/2] DOC: Add streamplot description to what's new. --- doc/users/whats_new.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/doc/users/whats_new.rst b/doc/users/whats_new.rst index 9ae7645f3a21..d4510f44f951 100644 --- a/doc/users/whats_new.rst +++ b/doc/users/whats_new.rst @@ -113,6 +113,21 @@ To temporarily use RC parameters:: >>> ... +Streamplot +---------- + +Tom Flannaghan and Tony Yu have added a new +:meth:`~matplotlib.pyplot.streamplot` function to plot the streamlines of +a vector field. This has been a long-requested feature and complements the +existing :meth:`~matplotlib.pyplot.quiver` function for plotting vector fields. +In addition to simply plotting the streamlines of the vector field, +:meth:`~matplotlib.pyplot.streamplot` allows users to map the colors and/or +line widths of the streamlines to a separate parameter, such as the speed or +local intensity of the vector field. + +.. plot:: mpl_examples/pylab_examples/streamplot_demo.py + + .. _whats-new-1-1: new in matplotlib-1.1 From 3acc9d21987496886d33762fd38cee1b7d5f3d43 Mon Sep 17 00:00:00 2001 From: Tony S Yu Date: Mon, 20 Aug 2012 22:26:03 -0400 Subject: [PATCH 2/2] DOC: Minor rendering fixes. --- doc/users/whats_new.rst | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/doc/users/whats_new.rst b/doc/users/whats_new.rst index d4510f44f951..addb2524cae4 100644 --- a/doc/users/whats_new.rst +++ b/doc/users/whats_new.rst @@ -82,28 +82,28 @@ minimum and maximum colorbar extensions. Set default bounding box in matplotlibrc ------------------------------------------ -Two new defaults are available in the matplotlibrc configuration file. -These are savefig.bbox, which can be set to 'standard' or 'tight,' and -savefig.pad_inches, which controls the bounding box padding. +Two new defaults are available in the matplotlibrc configuration file: +``savefig.bbox``, which can be set to 'standard' or 'tight', and +``savefig.pad_inches``, which controls the bounding box padding. New Boxplot Functionality ------------------------- Users can now incorporate their own methods for computing the median and its -confidence intervals into the boxplot method. For every column of data passed -to boxplot, the user can specify an accompanying median and confidence -interval. -:meth: `matplotlib.axes.boxplot` -.. plot:: examples/pylab_examples/boxplot_demo3.py +confidence intervals into the :meth:`~matplotlib.axes.boxplot` method. For +every column of data passed to boxplot, the user can specify an accompanying +median and confidence interval. + +.. plot:: mpl_examples/pylab_examples/boxplot_demo3.py New RC parameter functionality ------------------------------ -Matthew Emmett added a function and a context manager to help manage -RC parameters: :func:`~matplotlib.rc_file` and -:class:`~matplotlib.rc_context`. To load RC paramters from a file:: +Matthew Emmett added a function and a context manager to help manage RC +parameters: :func:`~matplotlib.rc_file` and :class:`~matplotlib.rc_context`. +To load RC parameters from a file:: >>> mpl.rc_file('mpl.rc')