Open xdanielc opened 7 months ago
Hey thanks for the reporting this! Could you add more details regarding:
I can't use the stroke-box or any other smaller box that fits the content
I'm not sure to understand exactly what you mean. What is the issue exactly and expected behaviour?
Thanks!
Could you add more details
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.
I tried to keep as little as possible so you could reproduce the bug.
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