@@ -2677,7 +2677,9 @@ def set_axis_on(self):
2677
2677
self .axison = True
2678
2678
2679
2679
def scatter (self , x , y , s = 20 , c = 'b' , marker = 'o' , cmap = None , norm = None ,
2680
- vmin = None , vmax = None , alpha = 1.0 , ** kwargs ):
2680
+ vmin = None , vmax = None , alpha = 1.0 , linewidths = None ,
2681
+ faceted = True ,
2682
+ ** kwargs ):
2681
2683
"""
2682
2684
SCATTER(x, y, s=20, c='b', marker='o', cmap=None, norm=None,
2683
2685
vmin=None, vmax=None, alpha=1.0)
@@ -2730,7 +2732,18 @@ def scatter(self, x, y, s=20, c='b', marker='o', cmap=None, norm=None,
2730
2732
instance, your settings for vmin and vmax will be ignored
2731
2733
2732
2734
* alpha =1.0 : the alpha value for the patches
2733
- """
2735
+
2736
+ * linewidths, if None, defaults to (lines.linewidth,). Note
2737
+ that this is a tuple, and if you set the linewidths
2738
+ argument you must set it as a sequence of floats, as
2739
+ required by PolyCollection -- see
2740
+ matplotlib.collections.PolyCollection for details
2741
+
2742
+ * faceted: if True, will use the default edgecolor for the
2743
+ markers. If False, will set the edgecolors to be the same
2744
+ as the facecolors
2745
+ """
2746
+
2734
2747
if not self ._hold : self .cla ()
2735
2748
2736
2749
syms = { # a dict from symbol to (numsides, angle)
@@ -2766,10 +2779,15 @@ def scatter(self, x, y, s=20, c='b', marker='o', cmap=None, norm=None,
2766
2779
else :
2767
2780
scales = s
2768
2781
2782
+ if faceted : edgecolors = None
2783
+ else : edgecolors = 'None'
2784
+
2769
2785
collection = RegularPolyCollection (
2770
2786
self .figure .dpi ,
2771
2787
numsides , rotation , scales ,
2772
2788
facecolors = colors ,
2789
+ edgecolors = edgecolors ,
2790
+ linewidths = linewidths ,
2773
2791
offsets = zip (x ,y ),
2774
2792
transOffset = self .transData ,
2775
2793
)
0 commit comments