Changeset a54bbf2b in sasview for src/sas/qtgui/MainWindow/DataExplorer.py
- Timestamp:
- Sep 11, 2018 10:00:45 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 2d47985
- Parents:
- 343d7fd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/DataExplorer.py
r2b8286c ra54bbf2b 574 574 new_plots = [] 575 575 for item, plot in plots.items(): 576 if self.updatePlot(plot) and filename !=plot.name:576 if self.updatePlot(plot) or filename not in plot.name: 577 577 continue 578 578 # Don't plot intermediate results, e.g. P(Q), S(Q) … … 583 583 # Don't include plots from different fitpages, but always include the original data 584 584 if fitpage_name in plot.name or filename == plot.name: 585 # 'sophisticated' test to generate standalone plot for residuals586 if 'esiduals' in plot.title:585 # Residuals get their own plot 586 if plot.plot_role == Data1D.ROLE_RESIDUAL: 587 587 plot.yscale='linear' 588 588 self.plotData([(item, plot)]) … … 686 686 687 687 # Update the active chart list 688 #self.active_plots[new_plot.data.id] = new_plot688 self.active_plots[new_plot.data.name] = new_plot 689 689 690 690 def appendPlot(self): … … 729 729 data_id = data.name 730 730 if data_id in ids_keys: 731 self.active_plots[data_id].replacePlot(data_id, data) 731 # We have data, let's replace data that needs replacing 732 if data.plot_role != Data1D.ROLE_DATA: 733 self.active_plots[data_id].replacePlot(data_id, data) 732 734 return True 733 735 elif data_id in ids_vals: 734 list(self.active_plots.values())[ids_vals.index(data_id)].replacePlot(data_id, data) 736 if data.plot_role != Data1D.ROLE_DATA: 737 list(self.active_plots.values())[ids_vals.index(data_id)].replacePlot(data_id, data) 735 738 return True 736 739 return False
Note: See TracChangeset
for help on using the changeset viewer.