mathics / Mathics

This repository is for archival. Please see https://github.com/Mathics3/mathics-core

Home Page:https://mathics.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Aymptote ellipses do not work

rocky opened this issue · comments

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

Renders as a circle rather than an ellipse:

 \begin{asy}
  usepackage("amsmath");
  size(2.9167cm, 5.8333cm);
  filldraw((87.5,175)--(131.25,326.55)--arc((87.5,175), (131.25, 326.55), (131.25, 23.446))--cycle, rgb(0, 0, 1), nullpen);
  clip(box((0,0), (175,350)));
\end{asy} 

Asymptote does have an ellipse. See for example https://artofproblemsolving.com/wiki/index.php/Asymptote:_Drawing_part_2

This has been fixed, but extent calculation needs to be fixed as a result of the y scaling.