1 Attachment(s)
How to remove QwtPlot grey axes background and shadow?
I am using QwtPlot to plot a load of polygons, and I want the chart to look just like an image, rather than a chart. I have recently worked out how to remove the grey border behind the axes (A in attachment), and here is the code:
Code:
//set up QwtPlot
//this code here changes the axis background from grey to white
pal.
setColor(QPalette::Window, Qt
::white);
plot->setPalette(pal);
However, I am trying to remove the shadow lines on the top and left of my QwtPlot (B in attachment). Does anyone know how to remove these?
Re: How to remove QwtPlot grey axes background and shadow?
B) is the frame of the canvas. You can disable it f.e by using QFrame::setFrameStyle(QFrame::NoFrame);
Uwe
Re: How to remove QwtPlot grey axes background and shadow?
Quote:
Originally Posted by
Uwe
B) is the frame of the canvas. You can disable it f.e by using QFrame::setFrameStyle(QFrame::NoFrame);
Uwe
Hi Uwe,
Thank you for trying, but I have since worked this out. The solution you gave does not work.
Here is the solution that works for me:
Code:
canv.setLineWidth(0);
myPlot->setCanvas(&canv);