QCustomPlot Discussion and Comments

Restructuring QCustomPlot on the flyReturn to overview

For task I need to display number of graphs on one plot in two ways.
In first mode each graph has its own value axis.
In the second all graphs are attached to one axis.
I have to switch between these modes on the fly.

What is the right way to do it? The order of my actions?
For example, is it right way to switch from multi axes to mono axis:
- remove all graphs
- remove all axes
- add new axis
- add graphs
What should be removed first graphs or axes?
Thanks in advance

two QCustomPlot is easy, just hide and show