For its efficiency, I'd like to use pyqtgraph rather than matplotlib, but
in a headless environment.
In matplotlib, I can create and save plots to a file without having a
window, i.e. use off-screen rendering, and display that to a file.
Can I do this with pyqtgraph? For the simplest possible plot example:
import numpy as np
import pyqtgraph as pg
data = np.random.normal(size=1000)
pg.plot(data, title="Simplest possible plotting example")
would it be possible to do something like:
data = np.random.normal(size=1000)
pg.render(data, title="Simplest possible plotting example","file.jpg")
Or alternately:
lay = pg.GraphicsLayout()
lay.addPlot(data)
lay.setSize(1000,1000)
lay.save("myfile.jpg")
If so, how?
Thanks!
-Jon
--
You received this message because you are subscribed to the Google Groups
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyqtgraph/4dc784c7-c221-47ee-97ec-c9f1e4ad3de7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.