Ignore:
Timestamp:
Aug 23, 2016 4:22:47 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:
839e5e3
Parents:
f56770ef
Message:

Add comments/docstrings

File:
1 edited

Legend:

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

    r6ffa0dd r204f628  
    167167            group_id = GROUP_ID_IQ_DATA 
    168168            if label == IQ_EXTRAPOLATED_DATA_LABEL: 
     169                # Show the extrapolation as a curve instead of points 
    169170                new_plot.symbol = GUIFRAME_ID.CURVE_SYMBOL_NUM 
    170171        elif label == TRANSFORM_LABEL: 
     
    172173            new_plot.yaxis("{\\Gamma}", '') 
    173174            group_id = GROUP_ID_TRANSFORM 
     175            # Show the transformation as a curve instead of points 
    174176            new_plot.symbol = GUIFRAME_ID.CURVE_SYMBOL_NUM 
    175177        new_plot.id = label 
     
    188190                leftdown=True) 
    189191        if label == IQ_EXTRAPOLATED_DATA_LABEL: 
     192            # Zoom in to the region we're interested in 
    190193            xlim = (min(self.corfunc_panel._extrapolated_data.x), self.corfunc_panel.qmax[1]*1.2) 
    191194            wx.CallAfter(wx.PostEvent, self.parent, PlotLimitEvent(id=IQ_DATA_LABEL, group_id=GROUP_ID_IQ_DATA, xlim=xlim)) 
     
    202205            return 
    203206        data = panel.plots[panel.graph.selected_plottable] 
    204         print "Data id is: {}".format(data.id) 
    205207        self.set_data([data]) 
Note: See TracChangeset for help on using the changeset viewer.