#8019: rendering a plot changes its dimensions [was: graphics_array messes up
dimensions of plots]
---------------------------+------------------------------------------------
   Reporter:  pdehaye      |       Owner:  was                 
       Type:  defect       |      Status:  new                 
   Priority:  major        |   Milestone:  sage-4.3.2          
  Component:  graphics     |    Keywords:  axes_range, axes_pad
     Author:  Paul Dehaye  |    Upstream:  N/A                 
   Reviewer:               |      Merged:                      
Work_issues:               |  
---------------------------+------------------------------------------------
Changes (by pdehaye):

  * keywords:  graphics_array, scale => axes_range, axes_pad
  * priority:  minor => major


Old description:

> The following code should illustrate this, see picture below, everything
> gets scaled for no reason.
>
> {{{
> graph = circle((0,0),20)
> graph.set_aspect_ratio(1)
> graph2 = graphics_array([[graph]*4]*4)
> graph2.show()
> }}}

New description:

 The following code should illustrate this, see picture below, everything
 gets scaled for no reason.
 {{{
 graph = circle((0,0),20)
 graph.set_aspect_ratio(1)
 graph2 = graphics_array([[graph]*4]*4)
 graph2.show()
 }}}

 The real reason is that axes_pad<>0 will affect the same picture every
 time it's rendered (to be saved or displayed), and change its dimensions
 by 2% each time by default. I can understand the need for axes_pad, but
 don't think this should happen:
 {{{
 graph = circle((0,0),20)
 graph.show()
 print graph.get_axes_range()
 graph.save('test.png')
 graph.save('test.png')
 graph.save('test.png')
 graph.save('test.png')
 graph.save('test.png')
 print graph.get_axes_range()
 graph.show()
 }}}
 and compare with
 {{{
 graph = circle((0,0),20)
 graph.show(axes_pad=0)
 print graph.get_axes_range()
 graph.save('test.png',axes_pad=0)
 graph.save('test.png',axes_pad=0)
 graph.save('test.png',axes_pad=0)
 graph.save('test.png',axes_pad=0)
 graph.save('test.png',axes_pad=0)
 print graph.get_axes_range()
 graph.show(axes_pad=0)
 }}}

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8019#comment:2>
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