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

Skip to content

Commit 4797b41

Browse files
committed
Make pcolormesh() and QuadMesh take/forward on kwargs as appropriate. This fixes (at least) zorder for pcolormesh.
svn path=/trunk/matplotlib/; revision=8366
1 parent 285cbb1 commit 4797b41

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2010-06-01 Fix pcolormesh() and QuadMesh to pass on kwargs as
2+
appropriate. - RM
3+
14
2010-05-18 Merge mpl_toolkits.gridspec into the main tree. - JJL
25

36
2010-05-04 Improve backend_qt4 so it displays figures with the

lib/matplotlib/axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6897,7 +6897,7 @@ def pcolormesh(self, *args, **kwargs):
68976897

68986898
collection = mcoll.QuadMesh(
68996899
Nx - 1, Ny - 1, coords, showedges,
6900-
antialiased=antialiased, shading=shading) # kwargs are not used
6900+
antialiased=antialiased, shading=shading, **kwargs)
69016901
collection.set_alpha(alpha)
69026902
collection.set_array(C)
69036903
if norm is not None: assert(isinstance(norm, mcolors.Normalize))

lib/matplotlib/collections.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,8 +1088,8 @@ class QuadMesh(Collection):
10881088
*shading* may be 'flat', 'faceted' or 'gouraud'
10891089
"""
10901090
def __init__(self, meshWidth, meshHeight, coordinates, showedges,
1091-
antialiased=True, shading='flat'):
1092-
Collection.__init__(self)
1091+
antialiased=True, shading='flat', **kwargs):
1092+
Collection.__init__(self, **kwargs)
10931093
self._meshWidth = meshWidth
10941094
self._meshHeight = meshHeight
10951095
self._coordinates = coordinates

0 commit comments

Comments
 (0)