Closed user202729 closed 2 weeks ago
You forgot to fit picture p
to a fixed sized frame
before adding it to currentpicture
(that will freeze it's scaling, instead of using the scaling of currentpicture). Here's a minimal example:
unitsize(1cm);
draw(scale(3)*unitcircle,red); // radius 3cm. for reference
picture p;
unitsize(p,5cm);
draw(p,unitcircle);
add(p.fit());
In retrospect this looks like the same issue as https://github.com/vectorgraphics/asymptote/issues/450 .
Expected behavior: the last
draw(unitcircle)
draws one with radius 5cm in the final image.Actual behavior: that circle is drawn with radius 1.