diff --git a/VisualPIC/Views/editPlotFieldWindow.py b/VisualPIC/Views/editPlotFieldWindow.py index 75627e2..78be183 100644 --- a/VisualPIC/Views/editPlotFieldWindow.py +++ b/VisualPIC/Views/editPlotFieldWindow.py @@ -655,14 +655,14 @@ def SetXAxisUnits(self): super(EditFieldPlotWindow, self).SetXAxisUnits() units = self.xUnits_comboBox.currentText() for fieldProperties in self.fieldPropertiesList: - fieldProperties["axesUnits"]["x"] = units + fieldProperties["axesUnits"]["z"] = units def SetYAxisUnits(self): if not self.updatingUiData: super(EditFieldPlotWindow, self).SetYAxisUnits() units = self.yUnits_comboBox.currentText() for fieldProperties in self.fieldPropertiesList: - fieldProperties["axesUnits"]["y"] = units + fieldProperties["axesUnits"]["x"] = units def SaveChanges(self): i = 0