Help with viewbox and images overlapping with other text #383
Replies: 1 comment 1 reply
-
Hi! I think this is because you convert HEIGHT also in cm, but you draw heights in mm. Change line 32 to be:
And it will fit perfectly. :) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need some help with the figure I'm trying to automate. I can't understand how viewbox works. Can someone help me? 💚
The code is posted here :
https://github.com/sononicola/Calcpad-worksheets/blob/main/functions/clt_properties.cpd
Try using this minimun working example:
At the moment I'm using
'<svg width = "100"height = "100"viewBox = "0 0 100 100">
but I've also tried to make it dependend on variables, with no results:
'<svg viewbox="'0' '0' 'WIDTHX + 500mm + WIDTHY' 'HEIGHT'" xmlns="http://www.w3.org/2000/svg" version="1.1" style="font-size:16px; width:3000px; height:300px">
Also the figure should be plotted correctly when exported in pdf format.
Beta Was this translation helpful? Give feedback.
All reactions