Ignore:
Timestamp:
Sep 8, 2011 4:34:35 PM (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:
10675c3
Parents:
f7ef313
Message:

Added a note in add text

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

Legend:

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

    r5637362 r36288ca  
    7373        self._color_labels = self.get_color_label() 
    7474        self.currColorIndex = "" 
     75        self._is_changed_legend_label = False 
    7576       
    7677        self.hide_menu = None 
     
    234235            ylo, yhi = self.subplot.get_ylim() 
    235236            old_data = self.plots[data.id] 
    236             data.label = old_data.label 
     237            if self._is_changed_legend_label: 
     238                data.label = old_data.label 
    237239            data.custom_color = old_data.custom_color 
    238240            # Replace data 
     
    508510                helpString += (' ' + plot.label +';') 
    509511            self.parent._window_menu.SetHelpString(pos, helpString) 
     512            self._is_changed_legend_label = True 
    510513            #break 
    511514        dial.Destroy() 
  • sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter2D.py

    r5637362 r36288ca  
    215215        self.graph.xaxis(data._xaxis, data._xunit) 
    216216        self.graph.yaxis(data._yaxis, data._yunit) 
    217              
    218         data.label = self.title_label 
     217        if self._is_changed_legend_label:    
     218                data.label = self.title_label 
    219219         
    220220        if data.label == None: 
     
    438438                                           fontproperties=self.title_font, 
    439439                                           color=self.title_color) 
     440                    self._is_changed_legend_label = True 
    440441                    self.subplot.figure.canvas.draw_idle()   
    441442            except: 
Note: See TracChangeset for help on using the changeset viewer.