Ticket #12213: trac_12213.patch

File trac_12213.patch, 836 bytes (added by was, 8 years ago)
  • sage/plot/plot.py

    # HG changeset patch
    # User William Stein <wstein@gmail.com>
    # Date 1324489358 28800
    # Node ID 177730cca13280090f9fb946529c91ac8d0bd7dc
    # Parent  4b54e8f3d43e084948cdcd2bc421249cf381b93e
    trac 12213: graphics aspect ratio issue
    
    diff --git a/sage/plot/plot.py b/sage/plot/plot.py
    a b  
    525525       
    526526            sage: P = circle((1,1), 1)
    527527            sage: P.aspect_ratio()
    528             1.0
     528            'automatic'
    529529            sage: P.set_aspect_ratio(2)
    530530            sage: P.aspect_ratio()
    531531            2.0
     
    533533            sage: P.aspect_ratio()
    534534            'automatic'
    535535        """
    536         return self._extra_kwds.get('aspect_ratio',1.0)
     536        return self._extra_kwds.get('aspect_ratio', 'automatic')
    537537
    538538    def legend(self, show=None):
    539539        r"""