mathics / Mathics

This repository is for archival. Please see https://github.com/Mathics3/mathics-core
https://mathics.org
Other
2.07k stars 205 forks source link

Aymptote ellipses do not work #1467

Open rocky opened 3 years ago

rocky commented 3 years ago
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

rocky commented 3 years ago

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