Changeset accbb1b in sasview for guiframe/local_perspectives


Ignore:
Timestamp:
May 19, 2011 6:59:17 PM (14 years ago)
Author:
Jae Cho <jhjcho@…>
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:
a436b2e
Parents:
d785914
Message:

profile dialog bug fixes

Location:
guiframe/local_perspectives/plotting
Files:
2 edited

Legend:

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

    radf44c2 raccbb1b  
    334334            id = wx.NewId() 
    335335            self.hide_menu = self._slicerpop.Append(id, "Hide Error") 
    336             if plot.dy is not None or plot.dy != []: 
     336 
     337            if plot.dy is not None and plot.dy != []: 
    337338                if plot.hide_error : 
    338339                    self.hide_menu.SetText('Show Error') 
     
    340341                    self.hide_menu.SetText('Hide Error') 
    341342            else: 
    342                 self.hide_menu.Disable() 
     343                self.hide_menu.Enable(False) 
    343344            wx.EVT_MENU(self, id, self._ontoggle_hide_error) 
    344345             
  • guiframe/local_perspectives/plotting/profile_dialog.py

    r59fbcff raccbb1b  
    6969             
    7070            self.newplot = Theory1D(data_plot.x, data_plot.y, data_plot.dy) 
     71            self.newplot.dy = None 
    7172            self.newplot.name = 'SLD' 
    7273            self.plotpanel.add_image(self.newplot)  
     
    106107        sizer = wx.BoxSizer(wx.VERTICAL) 
    107108        sizer.Add(self.plotpanel, -1, wx.LEFT|wx.RIGHT, 5) 
    108         sizer.Add((0, 10)) 
     109        sizer.Add(wx.StaticLine(self), 0, wx.ALL|wx.EXPAND, 5) 
     110        sizer.Add((0, 5)) 
    109111        #-----Button------------1 
    110112        id = wx.NewId() 
     
    156158        # Not implemented 
    157159        pass 
     160         
     161    def set_plot_unfocus(self): 
     162        """ 
     163        Set_plot unfocus 
     164        """ 
     165        # NOt implemented 
     166        pass 
    158167     
    159168class SLDplotpanel(PlotPanel): 
     
    184193        """ 
    185194        self.plots[plot.name] = plot 
     195        self.plots[plot.name].is_data = False 
    186196        #init graph 
    187197        #self.gaph = Graph() 
Note: See TracChangeset for help on using the changeset viewer.