[GRASS-SVN] r58598 - in grass/trunk/gui/wxpython: gui_core timeline
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jan 3 14:16:22 PST 2014
Author: annakrat
Date: 2014-01-03 14:16:22 -0800 (Fri, 03 Jan 2014)
New Revision: 58598
Modified:
grass/trunk/gui/wxpython/gui_core/forms.py
grass/trunk/gui/wxpython/timeline/frame.py
Log:
wxGUI/timeline: fix #2151
Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py 2014-01-03 21:02:39 UTC (rev 58597)
+++ grass/trunk/gui/wxpython/gui_core/forms.py 2014-01-03 22:16:22 UTC (rev 58598)
@@ -2167,7 +2167,8 @@
return
datasets = select.GetValue().split(',')
from timeline import frame
- frame.run(parent=self, datasets=datasets)
+ gcmd.RunCommand('g.gui.timeline', inputs=datasets)
+# frame.run(parent=self, datasets=datasets)
def OnUpdateSelection(self, event):
"""!Update dialog (layers, tables, columns, etc.)
Modified: grass/trunk/gui/wxpython/timeline/frame.py
===================================================================
--- grass/trunk/gui/wxpython/timeline/frame.py 2014-01-03 21:02:39 UTC (rev 58597)
+++ grass/trunk/gui/wxpython/timeline/frame.py 2014-01-03 22:16:22 UTC (rev 58598)
@@ -29,7 +29,6 @@
# backend.
matplotlib.use('WXAgg')
from matplotlib.figure import Figure
- import matplotlib.pyplot as plt
from matplotlib.backends.backend_wxagg import \
FigureCanvasWxAgg as FigCanvas, \
NavigationToolbar2WxAgg as NavigationToolbar
@@ -393,13 +392,6 @@
self.axes2d.change_geometry(1, 1, 1)
self.canvas.draw()
- if check_version(1, 1, 0):
- # not working, maybe someone is more lucky
- try:
- plt.tight_layout()
- except:
- pass
-
def _checkDatasets(self, datasets):
"""!Checks and validates datasets.
More information about the grass-commit
mailing list