On 7/4/07, Bobby Moretti <[EMAIL PROTECTED]> wrote: > > On 7/4/07, Timothy Clemans <[EMAIL PROTECTED]> wrote: > > > > How do I get my plots to look square. Like when I plot circles, they > > don't look like circles, because the viewing area is not square. > > > > Pass figsize = [n, n] as an argument to show(), where n is the size in inches.
In order for this approach to work in general you also have to make sure to pass xmin, xmax, ymin, ymax to the show command, e.g., show(plot(sin(x),-pi,pi), xmin=-2, xmax=2, ymin=-2,ymax=2, figsize=[5,5]) It might make sense to add an option to the show command, e.g., show(...., aspect=True), which, if set, would force a square aspect ratio on screen by making the ymin/ymax/xmin/xmax large enough and likewise adjusting figsize. Alternatively, one could adjust figsize relative to the given xmin/xmax/ymin/ymax. E.g., notice below how as long as the ratio of the figsizes is proportional to the ratios of the x and y span, you get a square aspect ratio. show(circle([0,0],1), xmin=-2, xmax=2, ymin=-1,ymax=1, figsize=[5,2.5]) Thoughts? William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~----------~----~----~----~------~----~------~--~---