Changeset 4a4164c in sasview for plottools/src/danse/common/plottools/canvas.py
- Timestamp:
- Jan 20, 2012 6:11:03 PM (13 years ago)
- 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:
- cdf515f
- Parents:
- 356d2d3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plottools/src/danse/common/plottools/canvas.py
r7434020 r4a4164c 130 130 self.xaxis = None 131 131 self.yaxis = None 132 self.ndraw = 0 132 133 # Support for mouse wheel 133 134 self.Bind(wx.EVT_MOUSEWHEEL, self._onMouseWheel) … … 166 167 """ 167 168 # Check resize whether or not True 169 if self.panel.dimension == 3: 170 return 171 168 172 # This is for fast response when plot is being resized 169 173 if not self.resizing: … … 191 195 # Only draw if window is shown, otherwise graph will bleed through 192 196 # on the notebook style AUI widgets. 197 # raise 193 198 fig = FigureCanvasWxAgg 194 if self.IsShownOnScreen() :199 if self.IsShownOnScreen() and self.ndraw != 1: 195 200 self._isRendered = True 196 #self.panel.parent.refresh_floating(self.panel)197 201 self._get_axes_switch() 198 202 #import time … … 207 211 else: 208 212 self._isRendered = False 209 213 if self.ndraw <= 1: 214 self.ndraw += 1 215 210 216 def _onMouseWheel(self, evt): 211 217 """Translate mouse wheel events into matplotlib events"""
Note: See TracChangeset
for help on using the changeset viewer.