Skip to content
Snippets Groups Projects
Commit 6efd1c06 authored by (no author)'s avatar (no author)
Browse files

changing how the renderer is selected in compare to make sure an interactive...

changing how the renderer is selected in compare to make sure an interactive or non-interactive renderer is correctly selected

git-svn-id: https://svn.ssec.wisc.edu/repos/glance/trunk@155 8a9318a1-56ba-4d59-b755-99d26321be01
parent 04e60d69
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,12 @@ from pycdf import CDFError
from subprocess import check_call as sh
from urllib import quote
import matplotlib
if "gui" in sys.argv[1:] :
matplotlib.use('Qt4Agg')
else :
matplotlib.use('Agg')
import glance.io as io
import glance.delta as delta
import glance.data as dataobj
......@@ -1922,6 +1928,9 @@ python -m glance
colocateToFile_library_call(a_path, b_path, args[2:], tempOptions)
# Note: the figure plotting in the GUI is dependant on having selected an interactive renderer in the first "use"
# statement at the beginning of this module. (It had to be moved into this module to pre-empt other use statempents
# from imports of other glance modules.)
def gui (*args) :
"""start the glance graphical user interface
......
......@@ -9,7 +9,7 @@ Copyright (c) 2011 University of Wisconsin SSEC. All rights reserved.
# these first two lines must stay before the pylab import
import matplotlib
matplotlib.use('Qt4Agg') # use the Qt Anti-Grain Geometry rendering engine
#matplotlib.use('Qt4Agg') # use the Qt Anti-Grain Geometry rendering engine
from pylab import *
......
......@@ -15,7 +15,7 @@ if os.path.isdir(PYQT4_HAX):
# these first two lines must stay before the pylab import
import matplotlib
matplotlib.use('Qt4Agg') # use the Anti-Grain Geometry rendering engine
#matplotlib.use('Qt4Agg') # use the Anti-Grain Geometry rendering engine
from pylab import *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment