From 5e41434cbb3b4ece08abda4d5aee955b523ca5fd Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@8a9318a1-56ba-4d59-b755-99d26321be01> Date: Tue, 21 Jul 2009 21:40:41 +0000 Subject: [PATCH] changed rendering engine for plotting to solve blank figure windows ambush everytime you ran reportGen or plotDiffs git-svn-id: https://svn.ssec.wisc.edu/repos/glance/trunk@27 8a9318a1-56ba-4d59-b755-99d26321be01 --- pyglance/glance/plot.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pyglance/glance/plot.py b/pyglance/glance/plot.py index 154d62f..2830332 100644 --- a/pyglance/glance/plot.py +++ b/pyglance/glance/plot.py @@ -7,15 +7,20 @@ Created by rayg Apr 2009. Copyright (c) 2009 University of Wisconsin SSEC. All rights reserved. """ -import os, sys, logging +# these first two lines must stay before the pylab import +import matplotlib +matplotlib.use('Agg') # use the Anti-Grain Geometry rendering engine + from pylab import * -import numpy as np import matplotlib.pyplot as plt from matplotlib import cm import matplotlib.colors as colors from matplotlib.ticker import FormatStrFormatter +import os, sys, logging +import numpy as np + import keoni.map.graphics as maps import glance.delta as delta -- GitLab