Skip to content

Commit

Permalink
Fix axes units bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFP committed Aug 11, 2018
1 parent 59b044c commit 8c1e3ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions VisualPIC/Views/editPlotFieldWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c1e3ba

Please sign in to comment.