Changeset 6c4130a in sasview for sansguiframe


Ignore:
Timestamp:
Jul 7, 2012 4:53:54 PM (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:
e4cd34c
Parents:
88a65e2
Message:

Added more curve styles and fixed minor error on deleting a data from plot

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

Legend:

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

    r7c755888 r6c4130a  
    139139        i += 1 
    140140        _labels['Line'] = i 
     141        i += 1 
     142        _labels['Dash'] = i 
     143        i += 1 
     144        _labels['Vline'] = i 
     145        i += 1 
     146        _labels['Step'] = i 
    141147        return _labels 
    142148     
     
    268274        if data.__class__.__name__ == 'Data2D': 
    269275            return 
    270         if data.id in self.plots.keys(): 
     276        plot_keys = self.plots.keys() 
     277        if data.id in plot_keys: 
    271278            #Recover panel prop.s 
    272279            xlo, xhi = self.subplot.get_xlim() 
     
    279286                data.symbol = old_data.symbol 
    280287                data.markersize = old_data.markersize 
     288                data.zorder = len(plot_keys) 
    281289            # Replace data 
    282290            self.graph.replace(data) 
     
    298306            self.plots[data.id] = data 
    299307            self.graph.add(self.plots[data.id])  
     308            data.zorder = len(plot_keys) 
    300309            ## Set the view scale for all plots 
    301310            try: 
  • sansguiframe/src/sans/guiframe/local_perspectives/plotting/appearanceDialog.py

    rb618b7f r6c4130a  
    217217        i += 1 
    218218        _labels['Line'] = i 
     219        i += 1 
     220        _labels['Dash'] = i 
     221        i += 1 
     222        _labels['Vline'] = i 
     223        i += 1 
     224        _labels['Step'] = i 
    219225        return _labels 
    220226     
Note: See TracChangeset for help on using the changeset viewer.