Ignore:
Timestamp:
Jun 10, 2010 2:10:01 PM (14 years ago)
Author:
Jae Cho <jhjcho@…>
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:
8c3856b
Parents:
1b43306
Message:

minor improvement in High Q plot especially when background is set close to the I_min value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • invariantview/perspectives/invariant/invariant_panel.py

    rd7a39e5 r90b9a17  
    1818# The maximum q-value to be used when extrapolating 
    1919Q_MAXIMUM  = 10 
    20 # the maximum value to plot the theory data 
    21 Q_MAXIMUM_PLOT = 2 
     20# the ratio of maximum q value/(qmax of data) to plot the theory data 
     21Q_MAXIMUM_PLOT = 3 
    2222# the number of points to consider during fit 
    2323NPTS = 10 
     
    7070        self._scale = SCALE  
    7171        self._background = BACKGROUND 
     72 
    7273        #container of invariant value 
    7374        self.inv_container = None 
     
    278279        if high_q: 
    279280            try:  
     281                qmax_plot = Q_MAXIMUM_PLOT * max(self._data.x) 
     282                if qmax_plot > Q_MAXIMUM: qmax_plot = Q_MAXIMUM 
    280283                qstar_high, qstar_high_err = inv.get_qstar_high() 
    281284                self.inv_container.qstar_high = qstar_high 
     
    283286                power_high = inv.get_extrapolation_power(range='high')  
    284287                self.power_high_tcl.SetValue(format_number(power_high)) 
    285                 high_out_data = inv.get_extra_data_high(q_end=Q_MAXIMUM_PLOT) 
     288                high_out_data = inv.get_extra_data_high(q_end=qmax_plot,npts=500) 
    286289                self._manager.plot_theory(data=high_out_data, 
    287290                                           name="High-Q extrapolation") 
Note: See TracChangeset for help on using the changeset viewer.