From 7b839142b04f0d349418632d891b81c0bc3a1eca Mon Sep 17 00:00:00 2001 From: "Jens H. Nielsen" Date: Sun, 23 Sep 2012 08:59:29 +0200 Subject: [PATCH] Document that pcolormesh now takes a face argument to the edgecolor. And clarify that the colorbar in axesgrid1 is also drawn with pcolormesh. --- lib/matplotlib/axes.py | 4 +++- lib/mpl_toolkits/axes_grid1/colorbar.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/axes.py b/lib/matplotlib/axes.py index 2d3b29ed2c81..56017a2bee2a 100644 --- a/lib/matplotlib/axes.py +++ b/lib/matplotlib/axes.py @@ -7413,11 +7413,13 @@ def pcolormesh(self, *args, **kwargs): 'gouraud', each quad will be Gouraud shaded. When gouraud shading, edgecolors is ignored. - *edgecolors*: [ *None* | ``'None'`` | color | color sequence] + *edgecolors*: [ *None* | ``'None'`` | ``'face'`` | color | color sequence] If *None*, the rc setting is used by default. If ``'None'``, edges will not be visible. + If ``'face'``, edges will have the same color as the faces. + An mpl color or sequence of colors will set the edge color *alpha*: ``0 <= scalar <= 1`` or *None* diff --git a/lib/mpl_toolkits/axes_grid1/colorbar.py b/lib/mpl_toolkits/axes_grid1/colorbar.py index b60d6a9a9398..c4dea240dd1c 100644 --- a/lib/mpl_toolkits/axes_grid1/colorbar.py +++ b/lib/mpl_toolkits/axes_grid1/colorbar.py @@ -518,7 +518,7 @@ def _edges(self, X, Y): def _add_solids(self, X, Y, C): ''' - Draw the colors using :meth:`~matplotlib.axes.Axes.pcolor`; + Draw the colors using :meth:`~matplotlib.axes.Axes.pcolormesh`; optionally add separators. ''' ## Change to pcolorfast after fixing bugs in some backends...