• Jameson Graef Rollins's avatar
    CLI support systems with no display · 7799b43c
    Jameson Graef Rollins authored
    matplotlib.pyplot throws a RuntimeError when no display is present.  One
    way around that is to set the backend to AGG.  But we don't want AGG when
    we do have a display.  So we only want to set it opportunistically.  But
    it also has to be set before anything else is imported.  Kind of convoluted.
    
    So we really just import pyplot as opportunistically as possible, and then
    rely on setting AGG backend when we're sure we don't need it in main().
    7799b43c
Name
Last commit
Last update
docs Loading commit data...
gwinc Loading commit data...
matlab Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
MANIFEST.in Loading commit data...
README.md Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...