Bug SS-3461
1 vote

Maxima/Image Region: bad text alignment of gnuplot-generated images

Created by Martin Kraska on 8/11/2017 7:19 PM Last Updated by Martin Kraska on 8/11/2017 7:22 PM
Logged: 0   (hrs)


Gnuplot produces SVG images with text labels:

<g transform="translate(195.1,140.6)" stroke="none" fill="black" font-family="Arial" font-size="8.00"  text-anchor="middle">
        <text><tspan font-family="Arial" >1</tspan></text>

These labels aren't correctly aligned.

If the code is changed manually by deleting the tspan object and moving the text anchor attribute from the g object to the text object, then it is rendered correctly by the image region.

<g transform="translate(271.7,140.6)" stroke="none" fill="black" font-family="Arial" font-size="8.00">
        <text text-anchor="middle" font-family="Arial" >3</text>

There are no comments for this issue.