Hi,
Does someone have a (better) trick to get natural y coordinates (=mathematical ones) with svg ?
I know I can invert a whole group with
<g id="axis" transform="translate(0 512) scale(1 -1)">
<rect x="0" y="0" width="100" height="100" >
</g>
but this does not work with text which then is written upside down
<g id="axis" transform="translate(0 512) scale(1 -1)">
<text x="0" y="0" font-size="20" >this text is written upside down</text>
</g>
unnatural y coordinates
Re: unnatural y coordinates
I'm not sure what your goal is in this, but you could certainly use your group transform trick and then also apply a scale(1 -1) to the text element (or use the vertical flip icon) to make it right side up again.
Re: unnatural y coordinates
> use the vertical flip icon
My question was not Inkscape related, it was about svg at large.
My goal is to draw a graph : collection of rect with text above each of them.
> apply a scale(1 -1) to the text element
Good idea. But it'll make the document quite verbose ("lots" of text)
My question was not Inkscape related, it was about svg at large.
My goal is to draw a graph : collection of rect with text above each of them.
> apply a scale(1 -1) to the text element
Good idea. But it'll make the document quite verbose ("lots" of text)