Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Extent calculation in Asymptote graphs is faulty #1502

Open
rocky opened this issue Jul 26, 2021 · 0 comments
Open

Extent calculation in Asymptote graphs is faulty #1502

rocky opened this issue Jul 26, 2021 · 0 comments

Comments

@rocky
Copy link
Member

rocky commented Jul 26, 2021

Recently in #1498 Arcs were extended to handle elipses. However calculating their proper size is still missing.

In particular the extent calculation for:

Graphics[{Blue, Disk[{0, 0}, {1, 2}, {Pi / 3, 5 Pi / 3}]}]

doesn't adjust for the elliptic behavior. This is not isolated new case.

In fact if you the manual you'll see lots examples.

Graphics[{Circle[{0, 0}, 1]}] (* This one is subtle. The top and bottom boundary is truncated. *)
Table[
  Graphics[
     {Circle[], 
       Arrow[Table[{Cos[phi],Sin[phi]},{phi,0,2*Pi,Pi/2}],{d, d}]
     }],
   {d,0,2,0.5}]  (* Probably we need to adjust for Table *)
Graphics[
   {Arrowheads[
     Table[
        {0.04, i/10, Graphics[Disk []]},{i,1,10}
       ] ], 
    Arrow[{{0, 0}, {6, 5}, {1, -3}, {-2, 2}}
    ]}
 ]
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant