I’ve got it mostly working now… problem is that the default plot size is unusable, the legend overlaps, etc. etc. -- when run interactively, you can just resize the window and it’ll redraw, and then you save it once you’re happy. So now I’m also setting plot size, font size, legend position, and then it’s “just” a (plt.savefig "plot.png") added before the (plt.show).
I might also add a more easily parseable log output, but for now tee and a small Lua script mangling it into CSV is enough.
I’ll probably clean up all of that in a couple of hours and send another patch / merge request. Tho it’s probably a good idea to get someone else to review it given that I have near-zero prior experience w/ Python.
On my Windows machine it opens a plot window that has UI to save the image.
lsusr might know what command to add to trigger the save operation.
On my Linux machine it opens a plot window that has UI to save the image.
I’ve got it mostly working now… problem is that the default plot size is unusable, the legend overlaps, etc. etc. -- when run interactively, you can just resize the window and it’ll redraw, and then you save it once you’re happy. So now I’m also setting plot size, font size, legend position, and then it’s “just” a
(plt.savefig "plot.png")
added before the(plt.show)
.I might also add a more easily parseable log output, but for now
tee
and a small Lua script mangling it into CSV is enough.I’ll probably clean up all of that in a couple of hours and send another patch / merge request. Tho it’s probably a good idea to get someone else to review it given that I have near-zero prior experience w/ Python.