Hello Uwe. I downloaded a version of qwt 6.1.0-multiaxes. Displayed on the chart two curves, each curve has its own axis-y. Everything works fine.
But when connecting the does not work properly.
I write as follows:
for (;i < axesCount
(QwtPlot::yLeft);i
++) {
QwtAxisId axisId
(QwtPlot::yLeft,i
);
_curve
[i
]->setAxes
(QwtPlot::xBottom,axisId
);
_zoomer[i] = new Zoomer(QwtAxis::xBottom,axisId,this->canvas());
_color[i] = /*QColor(*/trendColors[i]/*)*/;
_curve
[i
]->setPen
(QPen(_color
[i
]));
_curve[i]->attach(this);
_symbol
[i
]->setPen
(QColor(_color
[i
]));
_palette
[i
].
setColor(QPalette::WindowText, _color
[i
]);
_palette
[i
].
setColor(QPalette::Text, _color
[i
]);
}
for (;i < axesCount(QwtPlot::yLeft);i++)
{
QwtAxisId axisId(QwtPlot::yLeft,i);
_curve[i] = new QwtPlotCurve();
_curve[i]->setAxes(QwtPlot::xBottom,axisId);
_symbol[i] = new QwtSymbol();
_zoomer[i] = new Zoomer(QwtAxis::xBottom,axisId,this->canvas());
_color[i] = /*QColor(*/trendColors[i]/*)*/;
_curve[i]->setPen(QPen(_color[i]));
_curve[i]->attach(this);
_symbol[i]->setStyle(QwtSymbol::Ellipse);
_symbol[i]->setPen(QColor(_color[i]));
_palette[i].setColor(QPalette::WindowText, _color[i]);
_palette[i].setColor(QPalette::Text, _color[i]);
}
To copy to clipboard, switch view to plain text mode
By the number of y-axes I create an object zoomer.
But with the increase of the graph increases is not what I want. Example I tried to show in the picture.
Tell me, please, what I'm doing wrong.
Bookmarks