How can I detach one particular axis when using multiple axes from sourceforge Qwt repository? I want to detach (and change by -1 number of axes at it's position) axis together with curve set to it.
How can I detach one particular axis when using multiple axes from sourceforge Qwt repository? I want to detach (and change by -1 number of axes at it's position) axis together with curve set to it.
All you can do is to use QwtPlot::setAxesCount() using a count, that is one less than before. But unfortunately it doesn't support removing other scales than the last ones and it does not take care of plot items attached to it.
If you need this I'm afraid you have to transfer scales and items between axes until you can remove the last one.
Uwe
Hello Uwe,
I have 7 y-axes in my plot and i want to remove/delete the y-axis number 2.
With the function setAxesCount(QwtPlot::yLeft,naxisCount-1) I have the possibility to redefine the y-axis number.
Unfortunately i did not succeed in deleting the properties of the y-axis number 2.
When Ii call this function
QwtScaleWidget *scalewidget = axisWidget(QwtAxisId(QwtAxis::yLeft,naxisCount-2));
I can get the data of the y-axis number 2 for example axis-titel.
Unfortunately, this leads to a crash.
how can you delete the axis cleanly. do you have an example.
thanks a lot
Hi guys, I have solved that problem by updating the function QwtPlotPicker - axis ID needs to be updated as well
Bookmarks