[GRASS-SVN] r68102 - grass-addons/grass7/raster/r.futures/r.futures.demand
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Mar 21 18:55:51 PDT 2016
Author: annakrat
Date: 2016-03-21 18:55:51 -0700 (Mon, 21 Mar 2016)
New Revision: 68102
Modified:
grass-addons/grass7/raster/r.futures/r.futures.demand/r.futures.demand.py
Log:
r.futures.demand: use agg backend for matplotlib, default qt4agg is throwing error on windows
Modified: grass-addons/grass7/raster/r.futures/r.futures.demand/r.futures.demand.py
===================================================================
--- grass-addons/grass7/raster/r.futures/r.futures.demand/r.futures.demand.py 2016-03-22 01:25:10 UTC (rev 68101)
+++ grass-addons/grass7/raster/r.futures/r.futures.demand/r.futures.demand.py 2016-03-22 01:55:51 UTC (rev 68102)
@@ -166,6 +166,8 @@
demand = {}
i = 0
if plot:
+ import matplotlib
+ matplotlib.use('Agg')
import matplotlib.pyplot as plt
n_plots = np.ceil(np.sqrt(len(subregionIds)))
fig = plt.figure(figsize=(5 * n_plots, 5 * n_plots))
More information about the grass-commit
mailing list