const bool col0MaybeIsVertDist = SlotGUIUtils::slotColIsProbablyVerticalDistance (slot, 0); const bool col1MaybeIsVertDist = SlotGUIUtils::slotColIsProbablyVerticalDistance (slot, 1); // Default is to plot column 0 on x-axis, and column 1 on y-axis const bool overrideAxisDefault = rwWorkspace->overrideDefaultPlotAxesForVertDist(); if (overrideAxisDefault && col0MaybeIsVertDist && !col1MaybeIsVertDist) { curve->_xColumn = 1; curve->_yColumn = 0; } else { curve->_xColumn = 0; // default curve->_yColumn = 1; // default }