Explorar o código

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

(custom scale type)
Tomas Zigo %!s(int64=5) %!d(string=hai) anos
pai
achega
3dcfda8918
Modificáronse 1 ficheiros con 6 adicións e 6 borrados
  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