Hi,
I'm saving a plot to an image file using the QwtPlot print function.
The problem is that the saved image has a bad black margin (see the image attached).
This is the code I'm using to save the plot image. I'm using Qt 3.3.7 on Windows
void MyPlot
::savePlot(const QString &sOutputFilename,
int w,
int h
) {
// get the plot pixmap
print(plotPxm);
plotPxm.save(sOutputFilename, "PNG");
}
void MyPlot::savePlot(const QString &sOutputFilename, int w, int h)
{
// get the plot pixmap
QPixmap plotPxm(w, h);
print(plotPxm);
plotPxm.save(sOutputFilename, "PNG");
}
To copy to clipboard, switch view to plain text mode
How can I solve the problem?
Thank you in advance for your help.
Bookmarks