Changeset 353f467 in sasview


Ignore:
Timestamp:
Apr 29, 2010 10:34:54 PM (15 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:
8f2069d5
Parents:
5353e1c
Message:

fixed plotting bug

Location:
invariantview/perspectives/invariant
Files:
2 edited

Legend:

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

    r18d0bba r353f467  
    215215            new_plot = Theory1D(x=[], y=[], dy=None) 
    216216        else: 
    217             new_plot = Theory1D(x=data.x, y=data.y, dy=None) 
     217            scale =self.invariant_panel.get_scale() 
     218            background = self.invariant_panel.get_background() 
     219             
     220            if scale != 0: 
     221                # Put back the sacle and bkg for plotting 
     222                data.y = (data.y )/scale 
     223                new_plot = Theory1D(x=data.x, y=data.y, dy=None) 
     224            else: 
     225                msg = "Scale can not be zero." 
     226                raise ValueError, msg 
     227 
    218228        new_plot.name = name 
    219229        new_plot.xaxis(self.__data._xaxis, self.__data._xunit) 
  • invariantview/perspectives/invariant/invariant_panel.py

    r0a8759f r353f467  
    422422            self.get_qstar(inv=inv) 
    423423            #if scale_changed or bkg_changed: 
    424             self._manager.plot_data(scale=scale, background=background) 
     424            #self._manager.plot_data(data=inv.get_data()) 
    425425             
    426426        except: 
Note: See TracChangeset for help on using the changeset viewer.