Changeset 8c85ac1 in sasview for src/sas/qtgui/Plotting
- Timestamp:
- Nov 20, 2018 3:10:03 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- c4c4957
- Parents:
- 87ca467
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/Plotter2D.py
r87ca467 r8c85ac1 299 299 300 300 self.manager.communicator.plotUpdateSignal.emit([new_plot]) 301 302 301 self.manager.communicator.forcePlotDisplaySignal.emit([item, new_plot]) 303 302 … … 306 305 Update circular averaging plot on Data2D change 307 306 """ 307 if not hasattr(self,'_item'): return 308 308 item = self._item 309 309 if self._item.parent() is not None: … … 312 312 # Get all plots for current item 313 313 plots = GuiUtils.plotsFromModel("", item) 314 if plots is None: return 314 315 ca_caption = '2daverage'+self.data.name 315 316 # See if current item plots contain 2D average plot 316 test = [ca_caption in plot.group_id for plot in plots] 317 has_plot = False 318 for plot in plots: 319 if plot.group_id is None: continue 320 if ca_caption in plot.group_id: has_plot=True 317 321 # return prematurely if no circular average plot found 318 if not any(test): return322 if not has_plot: return 319 323 320 324 # Create a new plot
Note: See TracChangeset
for help on using the changeset viewer.