Changeset 0b57a57 in sasview for guiframe/local_perspectives


Ignore:
Timestamp:
Apr 23, 2010 1:11:02 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:
b9405cd
Parents:
784e2fa
Message:

make sure one can append more than 1 model for fitting

File:
1 edited

Legend:

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

    r4ed210f4 r0b57a57  
    127127                for plottable in self.plots.itervalues(): 
    128128                    if hasattr(event.plot,"id") and hasattr(plottable, "id"): 
    129                         if event.plot.id==plottable.id : 
     129                        #remove the existing plot and same id and same name 
     130                        if event.plot.id==plottable.id and event.plot.name== plottable.name: 
    130131                            self.graph.delete(plottable) 
    131132                 
     
    151152        self.graph.render(self) 
    152153        self.subplot.figure.canvas.draw_idle() 
    153         if self.errors_hide: 
    154             self._on_remove_errors(evt=None) 
    155         else: 
    156             self._on_add_errors( evt=None) 
     154        #if self.errors_hide: 
     155        #    self._on_remove_errors(evt=None) 
     156        #else: 
     157        #    self._on_add_errors( evt=None) 
    157158     
    158159    def onLeftDown(self,event):  
     
    249250            #if self.plots[self.graph.selected_plottable].name in self.err_dy.iterkeys()\ 
    250251            #    and self.errors_hide: 
     252            """ 
    251253            if selected_plot.__class__.__name__=="Data1D": 
    252254                if numpy.all(selected_plot.dy==0): 
     
    258260                    slicerpop.Append(id, '&Hide Error bars') 
    259261                    wx.EVT_MENU(self, id, self._on_remove_errors) 
    260              
     262            """ 
    261263            id = wx.NewId() 
    262264            slicerpop.Append(id, '&Linear fit') 
Note: See TracChangeset for help on using the changeset viewer.