kalos80
9th July 2008, 17:41
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
QPixmap plotPxm(w, h);
print(plotPxm);
plotPxm.save(sOutputFilename, "PNG");
}
How can I solve the problem?
Thank you in advance for your help.
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
QPixmap plotPxm(w, h);
print(plotPxm);
plotPxm.save(sOutputFilename, "PNG");
}
How can I solve the problem?
Thank you in advance for your help.