-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistencies when saving to a stretched image? #431
Comments
I can't tell whether you think the circle or rectangle (or both) are "inconsistent".
gridf(xs, ys, args...) = (context(),
line([[(x, 0h), (x, 1h)] for x in xs]), line([[(0w, y), (1w, y)] for y in ys]), args..., linewidth(0.1mm))
c3 = compose(context(units=UnitBox(-2., -2., 4., 4.)),
gridf(-2:2, -2:2, stroke("gray")),
# (context(), rectangle(-1, -1, 2, 2), fill("red")),
circle([0], [0], [1.5cx, 1.5cy]), fill(["deepskyblue","coral"])
)
draw(PNG("Comp431.png", 10cm, 5cm), c3) |
Indeed, my circles are clipped in svg, this is due to conversion to png. |
Hi, when the output image in SVG format is shaped to a stretched rectangle, there are inconsistencies in the way forms are reshaped.
In the following example, the circle is still a circle, but the rectangle and the lines are stretched.
"myplot.svg"
"myplot_reshaped.svg"
The text was updated successfully, but these errors were encountered: