Changeset a85f622 in sasview


Ignore:
Timestamp:
Sep 17, 2009 3:28:58 PM (15 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:
3a37fe0
Parents:
d4bb639
Message:

changed and removed "hide error" from context menu for data generated from model plot

File:
1 edited

Legend:

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

    re5664f2 ra85f622  
    242242            #    and self.errors_hide: 
    243243            if selected_plot.__class__.__name__=="Data1D": 
    244                 if selected_plot.dy ==None or selected_plot.dy== []: 
     244                if numpy.all(selected_plot.dy==0): 
    245245                    id = wx.NewId() 
    246                     slicerpop.Append(id, '&Show errors to data') 
     246                    slicerpop.Append(id, '&Show errors') 
    247247                    wx.EVT_MENU(self, id, self._on_add_errors) 
    248                 elif numpy.all(selected_plot.dy==0): 
    249                     id = wx.NewId() 
    250                     slicerpop.Append(id, '&Show errors to data') 
    251                     wx.EVT_MENU(self, id, self._on_add_errors) 
    252                 else: 
     248                elif selected_plot.dy !=None and selected_plot.dy != []: 
    253249                    id = wx.NewId() 
    254250                    slicerpop.Append(id, '&Hide Error bars') 
Note: See TracChangeset for help on using the changeset viewer.