#5956: image dimensions for show() are in inches
----------------------------------------------------------------+-----------
       Reporter:  mvngu                                         |         
Owner:  was                
           Type:  defect                                        |        
Status:  needs_review       
       Priority:  minor                                         |     
Milestone:  sage-5.4           
      Component:  graphics                                      |    
Resolution:                     
       Keywords:  image dimensions, figsize, beginner           |   Work 
issues:                     
Report Upstream:  None of the above - read trac for reasoning.  |     
Reviewers:  Karl-Dieter Crisman
        Authors:  Emily Chen                                    |     Merged 
in:                     
   Dependencies:                                                |      
Stopgaps:                     
----------------------------------------------------------------+-----------
Changes (by emchennyc):

  * status:  needs_work => needs_review
  * upstream:  N/A => None of the above - read trac for reasoning.


Comment:

 Thank you for the pointers. In matplotlib/rcsetup.py the default figure
 properties start at line 508.
 line 509 # figure size in inches: width by height 'figure.figsize'    : [
 [8.0,6.0], validate_nseq_float(2)]
 line 523 'savefig.dpi'         : [100, validate_float],   # DPI

 I submitted a new patch to include what I think you mean by a doctest. I
 wasn't sure what you meant about including '# not tested line with the
 segfault'. Should I include an example with the segfault in the docstring?

 Strangely enough, I did not raise any errors when I tried a 'pure'
 matplotlib example...

 {{{
 from matplotlib import pyplot as plt
 f=plt.figure(figsize=[28,10],dpi=100)
 f.show()
 }}}


 Would someone kindly review  and let me know what else should be included
 in the doctest? I appreciate your patience with this, as I am (obviously)
 new and hoping to learn. Thank you!

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5956#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to