Skip to content

Commit efb2b9a

Browse files
committed
Merge branch 'master' into getegui
Former-commit-id: c250d7182cbc2a51138b365c766cad03c57cec19
2 parents aee1d95 + 21f0d5c commit efb2b9a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dpx/srxplanargui/imageplot.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)