Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

matplotlib text element not included in gcode #71

Open
MaierJuerg opened this issue Jan 27, 2025 · 1 comment
Open

matplotlib text element not included in gcode #71

MaierJuerg opened this issue Jan 27, 2025 · 1 comment

Comments

@MaierJuerg
Copy link

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.

@sameer
Copy link
Owner

sameer commented Jan 28, 2025

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants