svg2gcode icon indicating copy to clipboard operation
svg2gcode copied to clipboard

matplotlib text element not included in gcode

Open MaierJuerg opened this issue 1 year ago • 1 comments

I draw a scatter chart with line elements with python/plt. I also add a text element to identify the plot. In python I use fig.savefig("myfile.svg"). Looking through the generated .svg file I can see the commands for plotting the line and the text element. Processing it with svg2gcode only the plot line is generated, the text element is ignored? Otherwise great stuff! Never thought it would be so easy to generate gcode from my svg file.

MaierJuerg avatar Jan 27 '25 19:01 MaierJuerg

@MaierJuerg the text has to be converted to paths using Inkscape or another similar tool.

Text rendering is tricky and I never got around to implementing it, especially because you could have custom fonts.

That said, there should be a warning that it can't convert text.

sameer avatar Jan 28 '25 15:01 sameer