Circle demo yields an ellipse!

0 views
Skip to first unread message

Owen

unread,
Jun 29, 2008, 8:31:15 PM6/29/08
to sage-support
The first example here:
http://www.sagemath.org/doc/html/tut/node21.html
.. shows creating a circle plot via:
L = [[cos(pi*i/100),sin(pi*i/100)] for i in range(200)]
p = polygon(L, rgbcolor=(1,1,0))
p.save() ## or p.show()

When I try this, I get an ellipse! Or more precisely, the plot has
unequal axis scaling.

Here's a picture:
http://backspaces.net/temp/Safari116.png

-- Owen

Yi Qiang

unread,
Jun 29, 2008, 8:38:17 PM6/29/08
to sage-s...@googlegroups.com
Good catch. Maybe the documentation should be updated to use

p.show(aspect_ratio=1) ?

William Stein

unread,
Jun 29, 2008, 8:43:36 PM6/29/08
to sage-s...@googlegroups.com
On Sun, Jun 29, 2008 at 5:31 PM, Owen <ow...@backspaces.net> wrote:
>

Use this instead:

L = [[cos(pi*i/100),sin(pi*i/100)] for i in range(200)]
p = polygon(L, rgbcolor=(1,1,0))

p.save(aspect_ratio=1) ## or p.show()

This is being tracked at
http://trac.sagemath.org/sage_trac/ticket/3534

Reply all
Reply to author
Forward
0 new messages