Revision: 8498 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8498&view=rev Author: jdh2358 Date: 2010-07-06 01:05:28 +0000 (Tue, 06 Jul 2010)
Log Message: ----------- added whats new for 1.0 Modified Paths: -------------- trunk/matplotlib/doc/users/whats_new.rst Added Paths: ----------- trunk/matplotlib/doc/api/gridspec_api.rst trunk/matplotlib/doc/pyplots/whats_new_1_subplot3d.py Added: trunk/matplotlib/doc/api/gridspec_api.rst =================================================================== --- trunk/matplotlib/doc/api/gridspec_api.rst (rev 0) +++ trunk/matplotlib/doc/api/gridspec_api.rst 2010-07-06 01:05:28 UTC (rev 8498) @@ -0,0 +1,12 @@ +************* +matplotlib gridspec +************* + + +:mod:`matplotlib.gridspec` +==================== + +.. automodule:: matplotlib.gridspec + :members: + :undoc-members: + :show-inheritance: Added: trunk/matplotlib/doc/pyplots/whats_new_1_subplot3d.py =================================================================== --- trunk/matplotlib/doc/pyplots/whats_new_1_subplot3d.py (rev 0) +++ trunk/matplotlib/doc/pyplots/whats_new_1_subplot3d.py 2010-07-06 01:05:28 UTC (rev 8498) @@ -0,0 +1,30 @@ +from mpl_toolkits.mplot3d.axes3d import Axes3D +from matplotlib import cm +#from matplotlib.ticker import LinearLocator, FixedLocator, FormatStrFormatter +import matplotlib.pyplot as plt +import numpy as np + +fig = plt.figure() + +ax = fig.add_subplot(1, 2, 1, projection='3d') +X = np.arange(-5, 5, 0.25) +Y = np.arange(-5, 5, 0.25) +X, Y = np.meshgrid(X, Y) +R = np.sqrt(X**2 + Y**2) +Z = np.sin(R) +surf = ax.plot_surface(X, Y, Z, rstride=1, cstride=1, cmap=cm.jet, + linewidth=0, antialiased=False) +ax.set_zlim3d(-1.01, 1.01) + +#ax.w_zaxis.set_major_locator(LinearLocator(10)) +#ax.w_zaxis.set_major_formatter(FormatStrFormatter('%.03f')) + +fig.colorbar(surf, shrink=0.5, aspect=5) + +from mpl_toolkits.mplot3d.axes3d import get_test_data +ax = fig.add_subplot(1, 2, 2, projection='3d') +X, Y, Z = get_test_data(0.05) +ax.plot_wireframe(X, Y, Z, rstride=10, cstride=10) + +plt.show() + Modified: trunk/matplotlib/doc/users/whats_new.rst =================================================================== --- trunk/matplotlib/doc/users/whats_new.rst 2010-07-05 23:09:51 UTC (rev 8497) +++ trunk/matplotlib/doc/users/whats_new.rst 2010-07-06 01:05:28 UTC (rev 8498) @@ -7,11 +7,140 @@ This page just covers the highlights -- for the full story, see the `CHANGELOG <http://matplotlib.sourceforge.net/_static/CHANGELOG>`_ +new in matplotlib-1.0 +====================== + +.. _whats-new-html5: + +HTML5/Canvas backend +--------------------- + +Simon Ratcliffe and Ludwig Schwardt have released an `HTML5/Canvas +<http://code.google.com/p/mplh5canvas/>`_ backend for matplotlib. The +backend is almost feature complete, and they have done a lot of work +comparing their html5 rendered images with our core renderer Agg. The +backend features client/server interactive navigation of matplotlib +figures in an html5 compliant browser. + +Sophisticated subplot grid layout +--------------------------------- + +Jae-Joon Lee has written :mod:`~matplotlib.gridspec`, a new module for +doing complex subplot layouts, featuring row and column spans and +more. See :ref:`gridspec` for a tutorial overview. + +.. plot:: users/plotting/examples/demo_gridspec01.py + +Easy pythonic subplots +----------------------- + +Fernando Perez got tired of all the boilerplate code needed to create a +figure and multiple subplots when using the matplotlib API, and wrote +a :func:`~matplotlib.pyplot.subplots` helper function. Basic usage +allows you to create the figure and an array of subplots with numpy +indexing (starts with 0). Eg:: + + fig, axarr = plt.subplots(2, 2) + axarr[0,0].plot([1,2,3]) # upper, left + +See :ref:`pylab_examples-subplots_demo` for several code examples. + +Contour fixes and and triplot +--------------------------------- + +Ian Thomas has fixed a long-standing bug that has vexed our most +talented developers for years. :func:`~matplotlib.pyplot.contourf` +now handles interior masked regions, and the boundaries of line and +filled contours coincide. + +Additionally, he has contributed a new module `matplotlib.tri` and +helper function :func:`~matplotlib.pyplot.triplot` for creating and +plotting unstructured triangular grids. + +.. plot:: mpl_examples/pylab_examples/triplot_demo.py + +multiple calls to show supported +--------------------------------- + +A long standing request is to support multiple calls to +:func:`~matplotlib.pyplot.show`. This has been difficult because it +is hard to get consistent behavior across operating systems, user +interface toolkits and versions. Eric Firing has done a lot of work +on rationalizing show across backends, with the desired behavior to +make show raise all newly created figures and block execution until +they are closed. Repeated calls to show should raise newly created +figures since the last call. Eric has done a lot of testing on the +user interface toolkits and versions and platforms he has access to, +but it is not possible to test them all, so please report problems to +the `mailing list +<http://sourceforge.net/mailarchive/forum.php?forum_name=matplotlib-users>`_ +and `bug tracker +<http://sourceforge.net/tracker/?group_id=80706&atid=560720>`_. + + +mplot3d graphs can be embedded in arbitrary axes +------------------------------------------------- + +You can now place an mplot3d graph into an arbitrary axes location, +supporting mixing of 2D and 3D graphs in the same figure, and/or +multiple 3D graphs in a single figure, using the "projection" keyword +argument to add_axes or add_subplot. Thanks Ben Root. + +.. plot:: pyplots/whats_new_1_subplot3d.py + +tick_params +------------ + +Eric Firing wrote tick_params, a convenience method for changing the +appearance of ticks and tick labels. See pyplot function +:func:`~matplotlib.pyplot.tick_params` and associated Axes method +:meth:`~matplotlib.axes.Axes.tick_params`. + +Lots of performance and feature enhancements +--------------------------------------------- + + +* Faster magnification of large images, and the ability to zoom in to + a single pixel + +* Local installs of documentation work better + +* Improved "widgets" -- mouse grabbing is supported + +* More accurate snapping of lines to pixel boundaries + +* More consistent handling of color, particularly the alpha channel, + throughout the API + +Much improved software carpentry +--------------------------------- + +The matplotlib trunk is probably in as good a shape as it has ever +been, thanks to improved software carpentry. We now have a buildbot +which runs a suite of nose regression tests on every svn commit, +auto-generating a set of images and comparing them against a set of +known-goods, sending emails to developers on failures with a +pixel-by-pixel image comparison. Releases and release bugfixes happen +in branches, allowing active new feature development to happen in the +trunk while keeping the release branches stable. Thanks to Andrew +Straw, Michael Droettboom and other matplotlib developers for the +heavy lifting. + +Bugfix marathon +---------------- + +Eric Firing went on a bug fixing and closing marathon, closing over +100 bugs on the `bug tracker +<http://sourceforge.net/tracker/?group_id=80706&atid=560720>`_ with +help from Jae-Joon Lee, Michael Droettboom, Christoph Gohlke and +Michiel de Hoon. + + new in matplotlib-0.99 ====================== -.. _whats-new-mplot3d: + New documentation ----------------- @@ -21,6 +150,7 @@ working with paths and transformations: :ref:`path_tutorial` and :ref:`transforms_tutorial`. +.. _whats-new-mplot3d: mplot3d -------- This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins