Changeset 8068b52 in sasview for guiframe/local_perspectives/plotting
- Timestamp:
- May 25, 2009 4:42:21 PM (16 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:
- fd4b6f8
- Parents:
- 588f84f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/Plotter1D.py
r1debb29 r8068b52 289 289 290 290 if selected_plot.__class__.__name__=="Data1D": 291 291 # Make sure that we can pass a basic Data1D 292 dxl = None 293 dxw = None 294 if hasattr(selected_plot, "dxl"): 295 dxl = selected_plot.dxl 296 if hasattr(selected_plot, "dxw"): 297 dxw = selected_plot.dxw 292 298 new_plot = dataFitting.Data1D( x=selected_plot.x, 293 299 y= selected_plot.y, 294 300 dx=selected_plot.dx, 295 301 dy=dy, 296 dxl= selected_plot.dxl,297 dxw= selected_plot.dxw)302 dxl=dxl, 303 dxw=dxw) 298 304 299 305 else: … … 365 371 ## Create a new plottable data1D 366 372 if selected_plot.__class__.__name__=="Data1D": 373 # Make sure that we can pass a basic Data1D 374 dxl = None 375 dxw = None 376 if hasattr(selected_plot, "dxl"): 377 dxl = selected_plot.dxl 378 if hasattr(selected_plot, "dxw"): 379 dxw = selected_plot.dxw 367 380 new_plot = dataFitting.Data1D( x=selected_plot.x, 368 381 y= selected_plot.y, 369 382 dx=selected_plot.dx, 370 383 dy=dy, 371 dxl= selected_plot.dxl,372 dxw= selected_plot.dxw)384 dxl=dxl, 385 dxw=dxw) 373 386 else: 374 387 ## Create a new plottable Theory1D
Note: See TracChangeset
for help on using the changeset viewer.