Ignore:
Timestamp:
Aug 22, 2016 11:17:33 AM (8 years ago)
Author:
lewis
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:
338d6ff
Parents:
a3ed157
Message:

Plot entire extrapolation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/corfunc/corfunc_panel.py

    ra3ed157 r6ffa0dd  
    217217            self._transform_btn.Disable() 
    218218            return 
    219         # TODO: Find way to set xlim and ylim so full range of data can be 
    220         # plotted but zoomed in 
    221         maxq = self._data.x.max() 
    222         mask = self._extrapolated_data.x <= maxq 
    223         numpts = len(self._extrapolated_data.x[mask]) + 250 
    224         plot_x = self._extrapolated_data.x[0:numpts] 
    225         plot_y = self._extrapolated_data.y[0:numpts] 
    226         to_plot = Data1D(plot_x, plot_y) 
    227         self._manager.show_data(to_plot, IQ_EXTRAPOLATED_DATA_LABEL) 
     219        self._manager.show_data(self._extrapolated_data, IQ_EXTRAPOLATED_DATA_LABEL) 
    228220        # Update state of the GUI 
    229221        self._transform_btn.Enable() 
Note: See TracChangeset for help on using the changeset viewer.