Changeset 5637362 in sasview


Ignore:
Timestamp:
Sep 8, 2011 11:50:47 AM (13 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:
f7ef313
Parents:
904830e
Message:

Added Grid on/off

Location:
sansguiframe/src/sans/guiframe/local_perspectives/plotting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter1D.py

    r902f373 r5637362  
    300300         
    301301        selected_plot = self.plots[self.graph.selected_plottable] 
    302         if self.hide_menu.GetText() == "Hide Error": 
     302        if self.hide_menu.GetText() == "Hide Error Bar": 
    303303            selected_plot.hide_error = True 
    304304        else: 
     
    414414                self._slicerpop.AppendMenu(id, '&Modify Symbol Size', size_menu) 
    415415                 
    416                 self._slicerpop.AppendSeparator() 
    417                  
    418                 self.hide_menu = self._slicerpop.Append(id, "Hide Error") 
     416                self.hide_menu = self._slicerpop.Append(id, "Hide Error Bar") 
    419417     
    420418                if plot.dy is not None and plot.dy != []: 
    421419                    if plot.hide_error : 
    422                         self.hide_menu.SetText('Show Error') 
     420                        self.hide_menu.SetText('Show Error Bar') 
    423421                    else: 
    424                         self.hide_menu.SetText('Hide Error') 
     422                        self.hide_menu.SetText('Hide Error Bar') 
    425423                else: 
    426424                    self.hide_menu.Enable(False) 
     
    448446         
    449447        id = wx.NewId() 
    450         self._slicerpop.Append(id, '&Modify Y Axis Label') 
     448        self._slicerpop.Append(id, '&Edit Y Axis Label') 
    451449        wx.EVT_MENU(self, id, self._on_yaxis_label)      
    452450        id = wx.NewId() 
    453         self._slicerpop.Append(id, '&Modify X Axis Label') 
     451        self._slicerpop.Append(id, '&Edit X Axis Label') 
    454452        wx.EVT_MENU(self, id, self._on_xaxis_label) 
     453 
     454        id = wx.NewId() 
     455        self._slicerpop.Append(id, '&Toggle Grid On/Off', 'Toggle Grid On/Off') 
     456        wx.EVT_MENU(self, id, self.onGridOnOff) 
    455457        self._slicerpop.AppendSeparator() 
    456458         
  • sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter2D.py

    re85e2bc r5637362  
    376376         
    377377        id = wx.NewId() 
    378         slicerpop.Append(id, '&Modify Y Axis Label') 
     378        slicerpop.Append(id, '&Edit Y Axis Label') 
    379379        wx.EVT_MENU(self, id, self._on_yaxis_label)      
    380380        id = wx.NewId() 
    381         slicerpop.Append(id, '&Modify X Axis Label') 
     381        slicerpop.Append(id, '&Edit X Axis Label') 
    382382        wx.EVT_MENU(self, id, self._on_xaxis_label) 
     383        id = wx.NewId() 
     384        slicerpop.Append(id, '&Toggle Grid On/Off', 'Toggle Grid On/Off') 
     385        wx.EVT_MENU(self, id, self.onGridOnOff) 
    383386        slicerpop.AppendSeparator() 
    384387         
Note: See TracChangeset for help on using the changeset viewer.