Ticket #3392: trac_3392_doctest-fix.patch

File trac_3392_doctest-fix.patch, 910 bytes (added by mabshoff, 11 years ago)
  • sage/plot/plot.py

    # HG changeset patch
    # User mabshoff@sage.math.washington.edu
    # Date 1219839111 25200
    # Node ID d22396ab0825f18f1e395f30efbe40791780bc8d
    # Parent  8e35d1ef34e42f7a1c4f41dbd580adabea251c3c
    Fix doctesting issue with Matplotlib deprecation warnings
    
    diff -r 8e35d1ef34e4 -r d22396ab0825 sage/plot/plot.py
    a b  
    23592359        a = float(options['alpha'])
    23602360        s = int(options['pointsize'])
    23612361        faceted = options['faceted'] #faceted=True colors the edge of point
    2362         subplot.scatter(self.xdata, self.ydata, s=s, c=c, alpha=a, faceted=faceted)
     2362        scatteroptions={}
     2363        if not faceted: scatteroptions['edgecolors'] = 'none'
     2364        subplot.scatter(self.xdata, self.ydata, s=s, c=c, alpha=a, **scatteroptions)
    23632365
    23642366class GraphicPrimitive_Polygon(GraphicPrimitive):
    23652367    """