@@ -6740,16 +6740,16 @@ def pcolor(self, *args, **kwargs):
6740
6740
*shading*: [ 'flat' | 'faceted' ]
6741
6741
If 'faceted', a black grid is drawn around each rectangle; if
6742
6742
'flat', edges are not drawn. Default is 'flat', contrary to
6743
- Matlab(TM) .
6743
+ Matlab.
6744
6744
6745
6745
This kwarg is deprecated; please use 'edgecolors' instead:
6746
- * shading='flat' -- edgecolors='None '
6746
+ * shading='flat' -- edgecolors='none '
6747
6747
* shading='faceted -- edgecolors='k'
6748
6748
6749
- *edgecolors*: [ None | 'None ' | color | color sequence]
6749
+ *edgecolors*: [ None | 'none ' | color | color sequence]
6750
6750
If *None*, the rc setting is used by default.
6751
6751
6752
- If 'None ', edges will not be visible.
6752
+ If 'none ', edges will not be visible.
6753
6753
6754
6754
An mpl color or sequence of colors will set the edge color
6755
6755
@@ -6805,6 +6805,16 @@ def pcolor(self, *args, **kwargs):
6805
6805
:class:`~matplotlib.collection.PolyCollection` properties:
6806
6806
6807
6807
%(PolyCollection)s
6808
+
6809
+ Note: the default *antialiaseds* is taken from
6810
+ rcParams['patch.antialiased'], which defaults to *True*.
6811
+ In some cases, particularly if *alpha* is 1,
6812
+ you may be able to reduce rendering artifacts (light or
6813
+ dark patch boundaries) by setting it to *False*. An
6814
+ alternative it to set *edgecolors* to 'face'. Unfortunately,
6815
+ there seems to be no single combination of parameters that
6816
+ eliminates artifacts under all conditions.
6817
+
6808
6818
"""
6809
6819
6810
6820
if not self ._hold : self .cla ()
@@ -6850,19 +6860,22 @@ def pcolor(self, *args, **kwargs):
6850
6860
axis = 1 )
6851
6861
verts = xy .reshape ((npoly , 5 , 2 ))
6852
6862
6853
- #verts = zip(zip(X1,Y1),zip(X2,Y2),zip(X3,Y3),zip(X4,Y4))
6854
-
6855
6863
C = compress (ravelmask , ma .filled (C [0 :Ny - 1 ,0 :Nx - 1 ]).ravel ())
6856
6864
6857
-
6858
6865
if shading == 'faceted' :
6859
- edgecolors = (0 ,0 ,0 ,1 ),
6860
- linewidths = (0.25 ,)
6866
+ edgecolors = 'k' ,
6861
6867
else :
6862
- edgecolors = 'face'
6863
- linewidths = (1.0 ,)
6868
+ edgecolors = 'none'
6869
+ linewidths = (0.25 ,)
6870
+ # Not sure if we want to have the following, or just trap
6871
+ # invalid kwargs and raise an exception.
6872
+ if 'edgecolor' in kwargs :
6873
+ kwargs ['edgecolors' ] = kwargs .pop ('edgecolor' )
6874
+ if 'linewidth' in kwargs :
6875
+ kwargs ['linewidths' ] = kwargs .pop ('linewidth' )
6876
+ if 'antialiased' in kwargs :
6877
+ kwargs ['antialiaseds' ] = kwargs .pop ('antialiased' )
6864
6878
kwargs .setdefault ('edgecolors' , edgecolors )
6865
- kwargs .setdefault ('antialiaseds' , (0 ,))
6866
6879
kwargs .setdefault ('linewidths' , linewidths )
6867
6880
6868
6881
collection = mcoll .PolyCollection (verts , ** kwargs )
0 commit comments