Changeset c81140c in sasview


Ignore:
Timestamp:
Apr 8, 2010 4:41:34 PM (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:
e0e873b
Parents:
286bb6c
Message:

reverse code

File:
1 edited

Legend:

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

    r8e87ece rc81140c  
    1818import time 
    1919 
    20 from copy import deepcopy 
    2120import danse.common.plottools 
    2221from danse.common.plottools.PlotPanel import PlotPanel 
     
    300299            name =self.plots[self.graph.selected_plottable].name 
    301300            dy = self.plots[self.graph.selected_plottable].dy 
    302             self.err_dy[name]= deepcopy(dy) 
     301            self.err_dy[name]= dy 
    303302            ## Create a new dy for a new plottable 
    304             
    305             dy = numpy.zeros(len(self.plots[self.graph.selected_plottable].y)) 
     303            import numpy 
     304            dy= numpy.zeros(len(self.plots[self.graph.selected_plottable].y)) 
    306305            selected_plot= self.plots[self.graph.selected_plottable] 
    307             #post the removed error to the parent 
    308             event = ErrorDataEvent(err_dy= deepcopy(self.err_dy)) 
    309             wx.PostEvent(self.parent, event) 
     306             
    310307            if selected_plot.__class__.__name__=="Data1D": 
    311308                # Make sure that we can pass a basic Data1D 
     
    348345            ## save the plot  
    349346            self.plots[self.graph.selected_plottable]=new_plot 
    350            
    351347            ## Render the graph 
    352348            self.graph.render(self) 
    353349            self.subplot.figure.canvas.draw_idle()  
    354350             
     351            event = ErrorDataEvent(err_dy=self.err_dy) 
     352            wx.PostEvent(self.parent, event) 
     353     
     354     
    355355    def _on_add_errors(self, evt): 
    356356        """ 
     
    361361            @param evt: Menu event 
    362362        """ 
     363        
     364         
    363365        if not self.graph.selected_plottable == None \ 
    364366            and self.graph.selected_plottable in self.plots.keys(): 
     
    372374             
    373375            try: 
    374                 dy = deepcopy(self.err_dy[selected_plot.name]) 
     376                dy = self.err_dy[selected_plot.name] 
    375377                
    376378            except: 
Note: See TracChangeset for help on using the changeset viewer.