Changeset e20870bc in sasview for src/sas/qtgui/Plotting/Plotter2D.py
- Timestamp:
- Jun 27, 2018 5:33:52 AM (6 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/Plotter2D.py
rd6b8a1d re20870bc 61 61 self.vmin = None 62 62 self.vmax = None 63 self.im = None 63 64 64 65 self.manager = manager … … 439 440 zmin_temp = self.vmin 440 441 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', 443 446 # origin='lower', 444 447 vmin=zmin_temp, vmax=zmax_temp, … … 459 462 if cbax is None: 460 463 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) 462 465 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) 466 469 cb.set_label('$' + self.scale + '$') 467 470
Note: See TracChangeset
for help on using the changeset viewer.