-
Qwt & save as image
Hi to everybody,
what i am trying to do, is save a plot i have created to a file...
i tried some things i found here and around the net, but no luck...
the tricky thing, is that i need to save the plot without showing it...
that's because i need to create a big number of plots for my project (>100)
so showing them is out of the question...
Any ideas?
Thank you in advance!
Georgios
-
Re: Qwt & save as image
QwtPlotRenderer is responsible for the generation of documents. You can export into PDF ( recommended because it is a scalable vector format ) Postscript, SVG and any type of format that is supported by QImageWriter::supportedImageFormats ( not recommended, because not scalable ).
You need to have a plot widget ( there is no separation between scene and view ) - but you can use the same plot widget for all of your plots that doesn't need to be visible ( nevertheless you need to call replot after attaching the items ).
Simply define and export your scenes one by one.
Uwe