From: <ry...@us...> - 2010-06-02 03:23:04
|
Revision: 8366 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8366&view=rev Author: ryanmay Date: 2010-06-02 03:22:57 +0000 (Wed, 02 Jun 2010) Log Message: ----------- Make pcolormesh() and QuadMesh take/forward on kwargs as appropriate. This fixes (at least) zorder for pcolormesh. Modified Paths: -------------- trunk/matplotlib/CHANGELOG trunk/matplotlib/lib/matplotlib/axes.py trunk/matplotlib/lib/matplotlib/collections.py Modified: trunk/matplotlib/CHANGELOG =================================================================== --- trunk/matplotlib/CHANGELOG 2010-06-02 02:22:16 UTC (rev 8365) +++ trunk/matplotlib/CHANGELOG 2010-06-02 03:22:57 UTC (rev 8366) @@ -1,3 +1,6 @@ +2010-06-01 Fix pcolormesh() and QuadMesh to pass on kwargs as + appropriate. - RM + 2010-05-18 Merge mpl_toolkits.gridspec into the main tree. - JJL 2010-05-04 Improve backend_qt4 so it displays figures with the Modified: trunk/matplotlib/lib/matplotlib/axes.py =================================================================== --- trunk/matplotlib/lib/matplotlib/axes.py 2010-06-02 02:22:16 UTC (rev 8365) +++ trunk/matplotlib/lib/matplotlib/axes.py 2010-06-02 03:22:57 UTC (rev 8366) @@ -6897,7 +6897,7 @@ collection = mcoll.QuadMesh( Nx - 1, Ny - 1, coords, showedges, - antialiased=antialiased, shading=shading) # kwargs are not used + antialiased=antialiased, shading=shading, **kwargs) collection.set_alpha(alpha) collection.set_array(C) if norm is not None: assert(isinstance(norm, mcolors.Normalize)) Modified: trunk/matplotlib/lib/matplotlib/collections.py =================================================================== --- trunk/matplotlib/lib/matplotlib/collections.py 2010-06-02 02:22:16 UTC (rev 8365) +++ trunk/matplotlib/lib/matplotlib/collections.py 2010-06-02 03:22:57 UTC (rev 8366) @@ -1088,8 +1088,8 @@ *shading* may be 'flat', 'faceted' or 'gouraud' """ def __init__(self, meshWidth, meshHeight, coordinates, showedges, - antialiased=True, shading='flat'): - Collection.__init__(self) + antialiased=True, shading='flat', **kwargs): + Collection.__init__(self, **kwargs) self._meshWidth = meshWidth self._meshHeight = meshHeight self._coordinates = coordinates This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |