Changeset 2778c4f in sasview for sansguiframe/src
- Timestamp:
- Apr 24, 2012 9:47:28 AM (13 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 53a6d09
- Parents:
- d6e39a8e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter2D.py
r0aca693 r2778c4f 199 199 self.graph.add(self.plots[data.id]) 200 200 # update qmax with the new xmax of data plotted 201 self.qmax = data.xmax 202 201 self.qmax = data.xmax 203 202 self.slicer = None 204 203 # Check axis labels 205 204 #TODO: Should re-factor this 206 ## render the graph with its new content 207 205 ## render the graph with its new content 208 206 #data2D: put 'Pixel (Number)' for axis title and unit in case of having no detector info and none in _units 209 207 if len(data.detector) < 1: … … 213 211 data._xunit = 'pixel' 214 212 data._yunit = 'pixel' 215 216 213 # graph properties 217 214 self.graph.xaxis(data._xaxis, data._xunit) … … 219 216 if self._is_changed_legend_label: 220 217 data.label = self.title_label 221 222 218 if data.label == None: 223 data.label = data.name 224 219 data.label = data.name 225 220 if not self.title_font: 226 221 self.graph.title(data.label) … … 235 230 fontproperties=self.title_font, 236 231 color=self.title_color) 237 self.subplot.figure.canvas.draw_idle() 238 239 232 self.subplot.figure.canvas.draw_idle() 233 # Update Graph menu and help string 234 pos = self.parent._window_menu.FindItem(self.window_caption) 235 helpString = 'Show/Hide Graph: ' 236 helpString += (' ' + str(data.label) +';') 237 self.parent._window_menu.SetHelpString(pos, helpString) 240 238 ## store default value of zmin and zmax 241 239 self.default_zmin_ctl = self.zmin_2D … … 245 243 if not self.is_zoomed and not toolbar_zoomed: 246 244 return 247 248 245 # Recover the x,y limits 249 246 if (xlo and xhi and ylo and yhi) != None: … … 255 252 self.toolbar.update() 256 253 self._is_zoomed = False 257 258 # Update Graph menu and help string259 pos = self.parent._window_menu.FindItem(self.window_caption)260 helpString = 'Show/Hide Graph: '261 helpString += (' ' + str(data.label) +';')262 self.parent._window_menu.SetHelpString(pos, helpString)263 254 264 255 def _set_axis_labels(self):
Note: See TracChangeset
for help on using the changeset viewer.