Ignore:
Timestamp:
Jan 19, 2009 11:39:18 AM (15 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:
48112ab
Parents:
a2c38de
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/local_perspectives/plotting/Plotter1D.py

    rd1dd9d4 rffd23b5  
    9292            @param event: data event 
    9393        """ 
     94        
    9495        #TODO: Check for existence of plot attribute 
    9596 
     
    112113                # plottable is already draw on the panel 
    113114                is_new = False 
    114  
     115         
     116             
    115117            
    116118        if is_new: 
     
    134136        #TODO: Should re-factor this 
    135137        #if event.plot._xunit != self.graph.prop["xunit"]: 
     138        
    136139        self.graph.xaxis(event.plot._xaxis, event.plot._xunit) 
    137140             
     
    223226                id = wx.NewId() 
    224227                slicerpop.Append(id, '&Add errors to data') 
     228                #print "panel scale before  ",self.xLabel, self.yLabel 
     229                #print "cyllinder before adding error", self.plots[self.graph.selected_plottable].x 
    225230                wx.EVT_MENU(self, id, self._on_add_errors) 
    226231            else: 
     
    276281            label, unit = self.plots[self.graph.selected_plottable].get_yaxis() 
    277282            new_plot.yaxis(label, unit) 
    278              
     283            #print "panel scale ",self.xLabel, self.yLabel 
    279284            self.graph.delete(self.plots[self.graph.selected_plottable]) 
    280285             
    281286            self.graph.add(new_plot) 
     287            # transforming the view of the new data into the same of the previous data 
     288            self._onEVT_FUNC_PROPERTY() 
     289            #print "cyllinder", self.plots[self.graph.selected_plottable].x,self.plots[self.graph.selected_plottable].view.x, new_plot.x, new_plot.view.x 
    282290            self.plots[self.graph.selected_plottable]=new_plot 
    283291             
Note: See TracChangeset for help on using the changeset viewer.