[GRASS-SVN] r67069 - grass/trunk/gui/wxpython/timeline
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Dec 11 19:08:28 PST 2015
Author: annakrat
Date: 2015-12-11 19:08:28 -0800 (Fri, 11 Dec 2015)
New Revision: 67069
Modified:
grass/trunk/gui/wxpython/timeline/frame.py
Log:
g.gui.timeline: attempt to fix #2824
Modified: grass/trunk/gui/wxpython/timeline/frame.py
===================================================================
--- grass/trunk/gui/wxpython/timeline/frame.py 2015-12-11 23:27:31 UTC (rev 67068)
+++ grass/trunk/gui/wxpython/timeline/frame.py 2015-12-12 03:08:28 UTC (rev 67069)
@@ -231,8 +231,6 @@
self.axes3d.grid(False)
# self.axes3d.grid(True)
if self.temporalType == 'absolute':
- if check_version(1, 1, 0):
- self.axes3d.zaxis_date()
convert = mdates.date2num
else:
convert = lambda x: x
@@ -267,6 +265,9 @@
self.axes3d.set_xlabel(_("X"))
self.axes3d.set_ylabel(_("Y"))
+ if self.temporalType == 'absolute':
+ if check_version(1, 1, 0):
+ self.axes3d.zaxis_date()
self.axes3d.set_zlabel(_('Time'))
self.axes3d.mouse_init()
self.canvas.draw()
@@ -276,8 +277,6 @@
self.axes2d.clear()
self.axes2d.grid(True)
if self.temporalType == 'absolute':
- self.axes2d.xaxis_date()
- self.fig.autofmt_xdate()
convert = mdates.date2num
else:
convert = lambda x: x
@@ -319,7 +318,8 @@
marker='o', linestyle='None', color=color)[0])
if self.temporalType == 'absolute':
- pass
+ self.axes2d.xaxis_date()
+ self.fig.autofmt_xdate()
# self.axes2d.set_xlabel(_("Time"))
else:
self.axes2d.set_xlabel(_("Time [%s]") % self.unit)
More information about the grass-commit
mailing list