Ignore:
Timestamp:
Jun 27, 2018 5:33:52 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, 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
Children:
b1a7a81
Parents:
c5e0d84
git-author:
Piotr Rozyczko <rozyczko@…> (05/31/18 07:15:47)
git-committer:
Piotr Rozyczko <rozyczko@…> (06/27/18 05:33:52)
Message:

Masking dialog for fitting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/Plotter2D.py

    rd6b8a1d re20870bc  
    6161        self.vmin = None 
    6262        self.vmax = None 
     63        self.im = None 
    6364 
    6465        self.manager = manager 
     
    439440                zmin_temp = self.vmin 
    440441                zmax_temp = self.vmax 
    441  
    442             im = self.ax.imshow(output, interpolation='nearest', 
     442            if self.im is not None: 
     443                self.im.set_data(output) 
     444            else: 
     445                self.im = self.ax.imshow(output, interpolation='nearest', 
    443446                                # origin='lower', 
    444447                                vmin=zmin_temp, vmax=zmax_temp, 
     
    459462            if cbax is None: 
    460463                ax.set_frame_on(False) 
    461                 cb = self.figure.colorbar(im, shrink=0.8, aspect=20) 
     464                cb = self.figure.colorbar(self.im, shrink=0.8, aspect=20) 
    462465            else: 
    463                 cb = self.figure.colorbar(im, cax=cbax) 
    464  
    465             cb.update_bruteforce(im) 
     466                cb = self.figure.colorbar(self.im, cax=cbax) 
     467 
     468            cb.update_bruteforce(self.im) 
    466469            cb.set_label('$' + self.scale + '$') 
    467470 
Note: See TracChangeset for help on using the changeset viewer.