소스 검색

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

(custom scale type)
Tomas Zigo 5 년 전
부모
커밋
3dcfda8918
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  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