I propose that the following objects default to an aspect ratio of 1.0.
The idea is that when someone plots these objects, they typically
want angles to appear as they really are:
* circle
* arc
* disk
* ellipse
* polygon
Are there any objections to these objects having a default aspect ratio
of 1.0?
Having an aspect ratio of 1.0 means that if you combine it with a plot
with aspect ratio 'automatic', the result will have aspect ratio 1.0
(since numbers override 'automatic'). For example:
sage: P = plot(x^2,(x,0,1))
sage: P.aspect_ratio()
'automatic'
sage: Q = P + circle((0,0),1)
sage: Q.aspect_ratio()
1.0
I've posted a patch for these aspect ratio changes at
http://trac.sagemath.org/sage_trac/ticket/12222, which needs review.
Thanks,
Jason
An arc is just part of a filled ellipse. So why would you remove
ellipse and not arc?
Thanks,
Jason
An arc is just part of a filled ellipse. So why would you remove
ellipse and not arc?
Ah; I learned something too. I didn't realize that the second radius
was optional.
But you say polygons should be 'automatic' aspect ratio? I guess that
makes sense---you are just connecting points, so it's practically like
line, which has 'automatic' aspect ratio.
Anyone else that actually uses polygons: what do you think the default
aspect ratio should be?
Thanks,
Jason
I think it should be whatever it is in Mathematica. (Same answer
for the other special cases.)
-- William
>
> Thanks,
>
> Jason
>
>
>
> --
> To post to this group, send an email to sage-...@googlegroups.com
> To unsubscribe from this group, send an email to
> sage-devel+...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org
They have a different notion of "aspect ratio" (there, aspect ratio is
the picture dimension ratio, while for us, it is the pixel dimension
ratio), so it is comparing apples and oranges, in a sense. However,
their default Polygon, Circle (and ellipse), and Disk look like
polygons, circles, and disks, so I guess that's a vote for aspect ratio
1 for each of them.
Jason
Huh? Also, is "us" really matplotlib?
> it is comparing apples and oranges, in a sense. However, their default
> Polygon, Circle (and ellipse), and Disk look like polygons, circles, and
> disks, so I guess that's a vote for aspect ratio 1 for each of them.
That sounds good to me.
However,
their default Polygon, Circle (and ellipse), and Disk look like
polygons, circles, and disks, so I guess that's a vote for aspect ratio
1 for each of them.
Yes; we adopted the matplotlib terminology for aspect ratio.
Mathematica's notion of aspect ratio is obtained for us, I think, by
using figsize with fig_tight=False and aspect_ratio='automatic'.
I tried to explain it on #2100. There, what I call "figure aspect
ratio" is what Mathematica is talking about with their AspectRatio option.
>
>> it is comparing apples and oranges, in a sense. However, their default
>> Polygon, Circle (and ellipse), and Disk look like polygons, circles, and
>> disks, so I guess that's a vote for aspect ratio 1 for each of them.
>
> That sounds good to me.
Great. The patch up at #12222 implements this, so I guess it's ready
for review if there are no more comments (novoselt has some comments up
on #12222 that basically start the discussion for a more intelligent
decision about aspect ratio, but that is more ambitious that #12222,
whose purpose is fixing some of the things that broke from #12213, so
probably should be carried to another ticket).
Thanks,
Jason