Changeset dce68f6 in sasview
- Timestamp:
- Sep 26, 2018 9:56:42 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 63467b6
- Parents:
- 38f4bc6
- git-author:
- Piotr Rozyczko <piotr.rozyczko@…> (09/26/18 09:56:00)
- git-committer:
- Piotr Rozyczko <piotr.rozyczko@…> (09/26/18 09:56:42)
- Location:
- src/sas/qtgui/Plotting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/MaskEditor.py
r05fa132 rdce68f6 227 227 228 228 # modify imshow data 229 self.plotter.plot(data=temp_data )229 self.plotter.plot(data=temp_data, update=True) 230 230 self.plotter.draw() 231 231 -
src/sas/qtgui/Plotting/Plotter2D.py
r5eebcd6 rdce68f6 86 86 self.title(title=data.title) 87 87 88 def plot(self, data=None, marker=None, show_colorbar=True ):88 def plot(self, data=None, marker=None, show_colorbar=True, update=False): 89 89 """ 90 90 Plot 2D self._data … … 109 109 ymin=self.ymin, ymax=self.ymax, 110 110 cmap=self.cmap, zmin=zmin_2D_temp, 111 zmax=zmax_2D_temp, show_colorbar=show_colorbar) 111 zmax=zmax_2D_temp, show_colorbar=show_colorbar, 112 update=update) 112 113 113 114 def calculateDepth(self): … … 390 391 391 392 def showPlot(self, data, qx_data, qy_data, xmin, xmax, ymin, ymax, 392 zmin, zmax, label='data2D', cmap=DEFAULT_CMAP, show_colorbar=True): 393 zmin, zmax, label='data2D', cmap=DEFAULT_CMAP, show_colorbar=True, 394 update=False): 393 395 """ 394 396 Render and show the current data … … 445 447 zmin_temp = self.vmin 446 448 zmax_temp = self.vmax 447 if self.im is not None :449 if self.im is not None and update: 448 450 self.im.set_data(output) 449 451 else: 450 452 self.im = self.ax.imshow(output, interpolation='nearest', 451 # origin='lower',452 453 vmin=zmin_temp, vmax=zmax_temp, 453 454 cmap=self.cmap,
Note: See TracChangeset
for help on using the changeset viewer.