Changeset 768656e in sasview


Ignore:
Timestamp:
Dec 10, 2008 4:47:56 PM (16 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
b2c3225
Parents:
45c1a35
Message:

fixe plotting more than2 data at the same time from xml file
add another interactor not connect to code yet

Location:
guiframe
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • guiframe/data_loader.py

    r7a7bf55 r768656e  
    119119        wx.PostEvent(parent, NewPlotEvent(plot=new_plot, title=filename)) 
    120120    else: 
    121         i="res" 
     121        i=1 
    122122        for item in output: 
    123123            try: 
     
    144144            new_plot.group_id = filename 
    145145            wx.PostEvent(parent, NewPlotEvent(plot=new_plot, title=filename)) 
    146             i="slit" 
     146            i+=1 
    147147            
    148148             
  • guiframe/local_perspectives/plotting/DataPanel.py

    rb06ef8c r768656e  
    451451         
    452452        slicerpop.AppendSeparator() 
    453        
     453         
     454        id = wx.NewId() 
     455        slicerpop.Append(id, '&Perform circular average') 
     456        wx.EVT_MENU(self, id, self.onCircular)  
     457         
    454458        id = wx.NewId() 
    455459        slicerpop.Append(id, '&Sector') 
    456460        wx.EVT_MENU(self, id, self.onSector)  
     461         
    457462         
    458463       
     
    519524        #self.slicer.update() 
    520525        self.draw() 
    521              
    522    
     526    def onCircular(self, event): 
     527        """ 
     528            perform circular averaging 
     529        """ 
     530        from DataLoader.manipulations import CircularAverage 
    523531    def onSector(self, event): 
    524          
     532        """ 
     533            Perform sector averaging 
     534        """ 
    525535        from SectorSlicer import SectorInteractor 
    526536               
  • guiframe/local_perspectives/plotting/SectorSlicer.py

    r917850d r768656e  
    208208        params = {} 
    209209        params["inner_radius"] = self.inner_circle._inner_mouse_x 
    210         #params["outer_radius"] = self.outer_circle._inner_mouse_x 
     210        params["outer_radius"] = self.outer_circle._inner_mouse_x 
     211        params["phi_min"] = self.inner_radious.get_radious() 
     212        params["phi_max"] = self.inner_radious.get_radious() 
    211213        params["nbins"] = self.nbins 
    212214        return params 
     
    219221        self.inner_circle.set_cursor(inner, self.inner_circle._inner_mouse_y) 
    220222        self.outer_circle.set_cursor(outer, self.outer_circle._inner_mouse_y) 
    221         #self._post_data() 
     223        self._post_data() 
    222224         
    223225    def freeze_axes(self): 
Note: See TracChangeset for help on using the changeset viewer.