Changeset 72d2876 in sasview for src/sas/sasgui/perspectives/corfunc/corfunc.py
- Timestamp:
- Jul 8, 2016 5:23:41 AM (8 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, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 2dc61c5
- Parents:
- fd5cfaf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/corfunc/corfunc.py
rfd5cfaf r72d2876 122 122 info='error')) 123 123 124 def show_data(self, data, label, path=None,reset=False):124 def show_data(self, data, label, reset=False): 125 125 """ 126 126 Show data read from a file 127 127 128 :param path: The path to the file129 128 :param data: The data to plot (Data1D) 130 129 :param label: What to label the plot. Also used as the plot ID 131 130 :param reset: If True, all other plottables will be cleared 132 131 """ 133 new_plot = Data1D(data.x, data.y, dy=data.dy) 134 132 new_plot = Data1D(data.x, copy.deepcopy(data.y), dy=data.dy) 135 133 group_id = "" 136 134 if label == IQ_DATA_LABEL or label == IQ_EXTRAPOLATED_DATA_LABEL: 137 135 new_plot.xaxis("\\rm{Q}", 'A^{-1}') 138 136 new_plot.yaxis("\\rm{Intensity} ", "cm^{-1}") 137 new_plot.y -= self.corfunc_panel.background 139 138 group_id = GROUP_ID_IQ_DATA 140 139 elif label == TRANSFORM_LABEL:
Note: See TracChangeset
for help on using the changeset viewer.