File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -94,9 +94,11 @@ def createPlot(self):
9494 self .imageorglogmax = self .imageorglog .max ()
9595 self .mask = self .srx .mask .staticMask ()
9696
97- if self .mask .size != image .size :
97+ if self .mask .shape != image .shape :
9898 self .maskfile = ''
9999 self .srxconfig .maskfile = ''
100+ self .srxconfig .ydimension = image .shape [0 ]
101+ self .srxconfig .xdimension = image .shape [1 ]
100102 self .mask = self .srx .mask .staticMask ()
101103
102104 y = np .arange (image .shape [0 ]).reshape ((image .shape [0 ], 1 )) * np .ones ((1 , image .shape [1 ]))
@@ -113,10 +115,9 @@ def createPlot(self):
113115 xbounds = xbounds ,
114116 ybounds = ybounds ,
115117 colormap = jet ,)[0 ]
116-
117118 # Tweak some of the plot properties
118119 self .plot .title = os .path .split (self .imagefile )[1 ]
119- self .plot .aspect_ratio = 1.0
120+ self .plot .aspect_ratio = float ( image . shape [ 1 ]) / float ( image . shape [ 0 ])
120121 self .plot .padding = 50
121122
122123 # Attach some tools to the plot
You can’t perform that action at this time.
0 commit comments