Ignore:
Timestamp:
Oct 12, 2011 4:04:01 PM (13 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:
26fc866
Parents:
da6fd1a
Message:

make sure residuals ans data are plotted using the same graph for each batch page

Location:
sansguiframe/src/sans/guiframe/local_perspectives/plotting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter1D.py

    r18253cd rfd51a7c  
    164164        self.plots      = {} 
    165165        if self.is_zoomed: 
    166                 self.is_zoomed = False 
     166            self.is_zoomed = False 
    167167         
    168168    def _OnReSize(self, event):    
     
    279279            if self.is_zoomed: 
    280280                self.is_zoomed = False 
    281          
     281       
    282282           
    283283    def draw_plot(self): 
     
    287287        self.draw()   
    288288 
    289  
    290         
    291289    def onLeftDown(self,event):  
    292290        """  
  • sansguiframe/src/sans/guiframe/local_perspectives/plotting/plotting.py

    r0f17dd9 rfd51a7c  
    125125        if group_id in self.plot_panels.keys(): 
    126126            panel = self.plot_panels[group_id] 
     127            for plottable in panel.graph.plottables.keys(): 
     128                self.remove_plot(group_id, plottable.id) 
    127129            panel.graph.reset() 
    128130            return True 
    129131        return False 
    130132             
    131          
    132133    def hide_panel(self, group_id): 
    133134        """ 
     
    275276            if group_id in self.plot_panels.keys(): 
    276277                #remove data from panel 
    277                 if event.action.lower() == 'remove': 
     278                if event.action.lower().strip() == 'remove': 
    278279                    id = event.id 
    279280                    return self.remove_plot(group_id, id) 
    280                 if event.action.lower() == 'hide': 
     281                if event.action.lower().strip() == 'hide': 
    281282                    return self.hide_panel(group_id) 
    282                 if event.action.lower() == 'delete': 
     283                if event.action.lower().strip() == 'delete': 
    283284                    panel = self.plot_panels[group_id] 
    284285                    uid = panel.uid 
    285286                    return self.parent.delete_panel(uid) 
    286                 if event.action.lower() == "clear": 
     287                if event.action.lower().strip() == "clear": 
    287288                    return self.clear_panel_by_id(group_id) 
    288289        if not hasattr(event, 'plot'):     
Note: See TracChangeset for help on using the changeset viewer.