aspect ratio and graphics array

0 views
Skip to first unread message

Paul-Olivier Dehaye

unread,
Nov 6, 2009, 8:01:47 PM11/6/09
to sage-support
Hi
the following code:

graph = Graphics()
graph += circle((0,0),10)
graph.set_aspect_ratio(1)
graph2 = graphics_array([[graph,graph],[graph,graph]])
graph2.show()

gives 4 ellipsis, while i would have expected to get 4 circles. Is
this a bug? How do I place pictures side by side (graphics_array)
while keeping each picture's aspect ratio?

Thank you

Jason Grout

unread,
Nov 6, 2009, 9:53:55 PM11/6/09
to sage-s...@googlegroups.com

This works fine in the newest version of Sage:

http://sagenb.org/home/pub/965/


What version do you have? The plotting code was recently reworked, and
some things with aspect ratios changed.

Thanks,

Jason


--
Jason Grout

Paul-Olivier Dehaye

unread,
Nov 7, 2009, 7:41:08 AM11/7/09
to sage-support
I was running 4.1.1. After a *while* I am now running 4.2. It s
better, but still problematic:
If you do the code sent above, they are circles, but not all of the
same size!?!

It s more obvious if you repeat the construction:

graph = Graphics()
graph += circle((0,0),20)
graph.set_aspect_ratio(1)
graph2 = graphics_array([[graph,graph,graph,graph],
[graph,graph,graph,graph],[graph,graph,graph,graph],
[graph,graph,graph,graph]])
graph2.show()
Reply all
Reply to author
Forward
0 new messages