Hi,
I have a weird problem where the y-axis will become inverted whenever I do a zoomBase from QwtPlotZoomer. The problem comes from the yMap's d_s1 and d_s2 values being inverted in my virtual void draw() function in my derived QwtPlotItem:
{
public:
{
}
class CanvasPicture: public QwtPlotItem
{
public:
virtual void draw(QPainter *painter,
const QwtScaleMap &xMap, const QwtScaleMap &yMap,
const QRect &rect) const
{
}
To copy to clipboard, switch view to plain text mode
I put a break point in this draw function, and each time I zoomBase on the qwtPlot, I see the d_s1 and d_s2 values for yMap inverting each time (-10,10) to (10,-10) to (-10,10) etc.
My question is what would cause the yMap's scale intervals to be inverted each time draw() is being called? None of my setAxisScale() functions are being called whenever i do a zoomBase, so that's not the one that's inverting the scales.
Thank you
Bookmarks