projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95d8425
)
part of the revert of 1.8 got botched
author
Robin Dunn
<robin@alldunn.com>
Wed, 4 May 2005 00:02:17 +0000
(
00:02
+0000)
committer
Robin Dunn
<robin@alldunn.com>
Wed, 4 May 2005 00:02:17 +0000
(
00:02
+0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33936
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
wxPython/wx/lib/plot.py
patch
|
blob
|
blame
|
history
diff --git
a/wxPython/wx/lib/plot.py
b/wxPython/wx/lib/plot.py
index 24daba08e218bcd36f52f13679069c3fd6982a20..44196f234aab2169199b6d3375c6b7560534c4b2 100644
(file)
--- a/
wxPython/wx/lib/plot.py
+++ b/
wxPython/wx/lib/plot.py
@@
-689,9
+689,11
@@
class PlotCanvas(wx.Window):
def ScrollUp(self, units):
"""Move view up number of axis units."""
self.last_PointLabel = None #reset pointLabel
- if self.BeenDrawn():
- self._drawCmd.scrollAxisY(units, self._ySpec)
- self._draw()
+ if self.last_draw is not None:
+ graphics, xAxis, yAxis= self.last_draw
+ yAxis= (yAxis[0]+units, yAxis[1]+units)
+ self.Draw(graphics,xAxis,yAxis)
+
def GetXY(self,event):
"""Takes a mouse event and returns the XY user axis values."""