Changeset 2778c4f in sasview


Ignore:
Timestamp:
Apr 24, 2012 7:47:28 AM (12 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:
53a6d09
Parents:
d6e39a8e
Message:

now graph menuitem tip available in 2d

File:
1 edited

Legend:

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

    r0aca693 r2778c4f  
    199199            self.graph.add(self.plots[data.id])  
    200200            # update qmax with the new xmax of data plotted 
    201             self.qmax = data.xmax 
    202              
     201            self.qmax = data.xmax   
    203202        self.slicer = None 
    204203        # Check axis labels 
    205204        #TODO: Should re-factor this 
    206         ## render the graph with its new content 
    207                  
     205        ## render the graph with its new content    
    208206        #data2D: put 'Pixel (Number)' for axis title and unit in case of having no detector info and none in _units 
    209207        if len(data.detector) < 1:  
     
    213211                data._xunit = 'pixel' 
    214212                data._yunit = 'pixel' 
    215          
    216213        # graph properties 
    217214        self.graph.xaxis(data._xaxis, data._xunit) 
     
    219216        if self._is_changed_legend_label:    
    220217                data.label = self.title_label 
    221          
    222218        if data.label == None: 
    223             data.label = data.name 
    224              
     219            data.label = data.name    
    225220        if not self.title_font: 
    226221            self.graph.title(data.label) 
     
    235230                                   fontproperties=self.title_font, 
    236231                                   color=self.title_color) 
    237             self.subplot.figure.canvas.draw_idle()  
    238          
    239          
     232            self.subplot.figure.canvas.draw_idle()     
     233        # Update Graph menu and help string         
     234        pos = self.parent._window_menu.FindItem(self.window_caption) 
     235        helpString = 'Show/Hide Graph: ' 
     236        helpString += (' ' + str(data.label) +';') 
     237        self.parent._window_menu.SetHelpString(pos, helpString) 
    240238        ## store default value of zmin and zmax  
    241239        self.default_zmin_ctl = self.zmin_2D 
     
    245243        if not self.is_zoomed and not toolbar_zoomed: 
    246244            return 
    247          
    248245        # Recover the x,y limits 
    249246        if (xlo and xhi and ylo and yhi) != None: 
     
    255252                self.toolbar.update() 
    256253                self._is_zoomed = False 
    257                  
    258         # Update Graph menu and help string         
    259         pos = self.parent._window_menu.FindItem(self.window_caption) 
    260         helpString = 'Show/Hide Graph: ' 
    261         helpString += (' ' + str(data.label) +';') 
    262         self.parent._window_menu.SetHelpString(pos, helpString) 
    263254 
    264255    def _set_axis_labels(self): 
Note: See TracChangeset for help on using the changeset viewer.