How do you switch? Using a push button or other GUI component that the user clicks? Connect to its clicked() signal and record which scale type is being used in some member variable.
The other, ugly way is to call plot->axisScaleEngine() and dynamic_cast<> it to determine the type.
Bookmarks