Browse Source

wxGUI Histogramming Tool: fix Plot xSpec, ySpec property value (#422)

(custom scale type)
Tomas Zigo 5 years ago
parent
commit
3dcfda8918
1 changed files with 6 additions and 6 deletions
  1. 6 6
      gui/wxpython/wxplot/base.py

+ 6 - 6
gui/wxpython/wxplot/base.py

@@ -192,15 +192,15 @@ class BasePlotFrame(wx.Frame):
 
         # x and y axis set to normal (non-log)
         self.client.logScale = (False, False)
-        if self.properties['x-axis']['prop']['type']:
-            self.client.xSpec = self.properties['x-axis']['prop']['type']
+        if self.properties['x-axis']['prop']['type'] == 'custom':
+            self.client.xSpec = 'min'
         else:
-            self.client.xSpec = 'auto'
+            self.client.xSpec = self.properties['x-axis']['prop']['type']
 
-        if self.properties['y-axis']['prop']['type']:
-            self.client.ySpec = self.properties['y-axis']['prop']['type']
+        if self.properties['y-axis']['prop']['type'] == 'custom':
+            self.client.ySpec = 'min'
         else:
-            self.client.ySpec = 'auto'
+            self.client.ySpec = self.properties['y-axis']['prop']['type']
 
     def InitRasterOpts(self, rasterList, plottype):
         """Initialize or update raster dictionary for plotting