Pārlūkot izejas kodu

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

(custom scale type)
Tomas Zigo 5 gadi atpakaļ
vecāks
revīzija
3dcfda8918
1 mainītis faili ar 6 papildinājumiem un 6 dzēšanām
  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