Changeset 479 for sans


Ignore:
Timestamp:
Mar 4, 2009 2:07:49 PM (14 years ago)
Author:
ajj
Message:
  • All plots now update when plot type is changed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/utils/bt5/bt5plot2/bt5plot2

    r478 r479  
    233233            self.axis.set_yscale('log')         
    234234 
    235         self.canvas.draw() 
     235        self.rescale_and_redraw() 
    236236        return 
    237237        
     
    240240        if widget.get_active(): 
    241241                self.plottype = widget.get_name().split('_')[1] 
     242 
     243        model = self.filelistview.get_model().get_model() 
     244        iter = model.iter_children(None) 
     245        while iter: 
     246            path = model.get_path(iter) 
     247            if model[path][1] != 0: 
     248                model[path][2].remove_plot() 
     249                model[path][2].plot_dataset(self.axis,self.plottype) 
     250            iter = model.iter_next(iter) 
     251 
     252        self.rescale_and_redraw() 
    242253                 
    243254        return 
Note: See TracChangeset for help on using the changeset viewer.