def swapAxes(self, axisA, axisB):
        if (axisA == axisB):
            return

        if axisA in self.axesNames and axisB in self.axesNames:
            i = self.axesNames.index(axisA)
            j = self.axesNames.index(axisB)
            self.axisList[i], self.axisList[j] = self.axisList[j], self.axisList[i]
            self.axisOrder[i], self.axisOrder[j] = self.axisOrder[j], self.axisOrder[i]
            self.setupVariableAxes()
swapAxes(axisA: QAxis, axisB: QAxis)
dataset/ETHPy150Open VisTrails/VisTrails/contrib/cdat/cdat_window.py/QAxisList.swapAxes