-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Possible problem with SVG and transform-box #887
Comments
Hey thanks for the reporting this! Could you add more details regarding:
I'm not sure to understand exactly what you mean. Thanks! |
Yeah, in the style tag you can see I'm using that property and value, which if you change the scale will change the point of transformation (I didn't use this property before maybe it's recent-ish?) g[id^="xtick_"], g[id^="ytick_"]{
transform-box: stroke-box;
} |
Sorry for the late reply I though I already responded.
You still haven't described what the bug is, and what is the expected behaviour. Also can you share a live example ? Thanks!! |
I was using mathplotlib and discovered I could export SVGs so I thought about adding animation, but apparently I can't use the stroke-box or any other smaller box that fits the content, which for properties suuch as rotation or scale is important.
I think this could be a duplicate of #823 but would be nice to have some workaround for such an extensively used python library that can output good looking charts.
Here's the code, I tried to keep as little as possible so you could reproduce the bug.
HTML:
JS
The text was updated successfully, but these errors were encountered: