From 8c1e3bad963771477ac36e2b4c6c3ec82b58a5b7 Mon Sep 17 00:00:00 2001 From: AngelFP Date: Sat, 11 Aug 2018 18:13:31 +0200 Subject: [PATCH] Fix axes units bug --- VisualPIC/Views/editPlotFieldWindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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