Hello everybody,
I'm newbie in qcustomplot, i'm using the zoom selection in my plot and i have a strange behavior : the color of my curves change after a zoom selection.
This is my plot before zoom :
https://drive.google.com/open?id=1BgEebB2inP06b6fKNrBr2-h-M6pz8EXR<br />
and this is my plot after zoom :
https://drive.google.com/open?id=1aK5mIeoo6ldYONkM9RCWrQTT-WWYINWR<br />
And this is my code :
chartWidget->setSelectionRectMode(QCP::srmSelect);
Slot when selection :
QCPSelectionRect* rect = chartWidget->selectionRect(); QCPRange rangeX = rect->range(chartWidget->xAxis); QCPRange rangeY; for (int i = 0; i < chartWidget->graphCount(); ++i) { rangeY = rect->range(chartAxisYList[i]); chartAxisX->setRange(rangeX.lower, rangeX.upper); chartAxisYList[i]->setRange(rangeY.lower, rangeY.upper); }
Can any help me to resolve this please ?