Changeset 34f23c8 in sasview for src/sas/sasgui/guiframe/local_perspectives/plotting
- Timestamp:
- Mar 20, 2019 10:06:22 AM (5 years ago)
- Branches:
- ticket-1249
- Children:
- 9305b46
- Parents:
- 09d7021
- Location:
- src/sas/sasgui/guiframe/local_perspectives/plotting
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/local_perspectives/plotting/AnnulusSlicer.py
r5251ec6 r34f23c8 161 161 new_plot.detector = self.base.data2D.detector 162 162 # If the data file does not tell us what the axes are, just assume... 163 new_plot.xaxis( "\\rm{\phi}", 'degrees')164 new_plot.yaxis( "\\rm{Intensity} ", "cm^{-1}")165 if hasattr(data, "scale") and data.scale == 'linear' and \166 self.base.data2D.name.count("Residuals") > 0:163 new_plot.xaxis(r"\rm{\phi}", 'degrees') 164 new_plot.yaxis(r"\rm{Intensity} ", "cm^{-1}") 165 if (hasattr(data, "scale") and data.scale == 'linear' 166 and self.base.data2D.name.count("Residuals") > 0): 167 167 new_plot.ytransform = 'y' 168 new_plot.yaxis( "\\rm{Residuals} ", "/")168 new_plot.yaxis(r"\rm{Residuals} ", "/") 169 169 170 170 new_plot.group_id = "AnnulusPhi" + self.base.data2D.name -
src/sas/sasgui/guiframe/local_perspectives/plotting/Plotter1D.py
r5251ec6 r34f23c8 205 205 self.canvas.set_resizing(self.resizing) 206 206 self.parent.set_schedule(True) 207 pos_x, pos_y = self.GetPosition Tuple()207 pos_x, pos_y = self.GetPosition() 208 208 if pos_x != 0 and pos_y != 0: 209 self.size, _ = self.GetClientSize Tuple()209 self.size, _ = self.GetClientSize() 210 210 self.SetSizer(self.sizer) 211 211 wx.CallAfter(self.parent.disable_app_menu, self) … … 714 714 pos = self.ScreenToClient(pos_evt) 715 715 except: 716 pos_x, pos_y = self.toolbar.GetPosition Tuple()716 pos_x, pos_y = self.toolbar.GetPosition() 717 717 pos = (pos_x, pos_y + 5) 718 718 self.PopupMenu(self._slicerpop, pos) -
src/sas/sasgui/guiframe/local_perspectives/plotting/Plotter2D.py
r5251ec6 r34f23c8 179 179 # On Windows platform, default window size is incorrect, so set 180 180 # toolbar width to figure width. 181 _, th = self.toolbar.GetSize Tuple()182 fw, _ = self.canvas.GetSize Tuple()181 _, th = self.toolbar.GetSize() 182 fw, _ = self.canvas.GetSize() 183 183 self.toolbar.SetSize(wx.Size(fw, th)) 184 184 self.sizer.Add(self.toolbar, 0, wx.LEFT | wx.EXPAND) … … 400 400 pos = self.ScreenToClient(pos_evt) 401 401 except: 402 pos_x, pos_y = self.toolbar.GetPosition Tuple()402 pos_x, pos_y = self.toolbar.GetPosition() 403 403 pos = (pos_x, pos_y + 5) 404 404 self.PopupMenu(slicerpop, pos) -
src/sas/sasgui/guiframe/local_perspectives/plotting/SimplePlot.py
r7432acb r34f23c8 84 84 pos = self.ScreenToClient(pos_evt) 85 85 except: 86 pos_x, pos_y = self.toolbar.GetPosition Tuple()86 pos_x, pos_y = self.toolbar.GetPosition() 87 87 pos = (pos_x, pos_y + 5) 88 88 self.PopupMenu(slicerpop, pos) … … 135 135 # set the resizing flag 136 136 self.canvas.set_resizing(self.resizing) 137 pos_x, pos_y = self.GetPosition Tuple()137 pos_x, pos_y = self.GetPosition() 138 138 if pos_x != 0 and pos_y != 0: 139 self.size, _ = self.GetClientSize Tuple()139 self.size, _ = self.GetClientSize() 140 140 self.SetSizer(self.sizer) 141 141
Note: See TracChangeset
for help on using the changeset viewer.