Changeset 3bdbfcc in sasview for src/sas/qtgui/DataExplorer.py
- Timestamp:
- Feb 2, 2017 8:29:07 AM (7 years ago)
- Branches:
- 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
- Children:
- 965fbd8
- Parents:
- 5d89f43
- git-author:
- Piotr Rozyczko <rozyczko@…> (01/23/17 09:21:03)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (02/02/17 08:29:07)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/DataExplorer.py
r87cc73a r3bdbfcc 399 399 new_plot = Plotter(self) 400 400 401 def addDataPlot2D(plot_set ):401 def addDataPlot2D(plot_set, item): 402 402 plot2D = Plotter2D(self) 403 plot2D.item = item 403 404 plot2D.plot(plot_set) 404 405 self.plotAdd(plot2D) 405 406 406 for plot_set in plots:407 for item, plot_set in plots: 407 408 if isinstance(plot_set, Data1D): 408 409 new_plot.plot(plot_set) 409 410 elif isinstance(plot_set, Data2D): 410 addDataPlot2D(plot_set )411 addDataPlot2D(plot_set, item) 411 412 else: 412 413 msg = "Incorrect data type passed to Plotting" … … 450 451 451 452 # Add new data to the old plot, if data type is the same. 452 for plot_set in new_plots:453 for _, plot_set in new_plots: 453 454 if type(plot_set) is type(old_plot._data): 454 455 old_plot.data = plot_set
Note: See TracChangeset
for help on using the changeset viewer.