Skip to content
Snippets Groups Projects

Defer setting plot backend as much as possible

Merged Duncan Macleod requested to merge (removed):gwinc.ifo-plt-backend into master
1 unresolved thread
1 file
+ 5
1
Compare changes
  • Side-by-side
  • Inline
+ 5
1
import argparse
import numpy as np
import matplotlib.pyplot as plt
from . import IFOS, PLOT_STYLE
from .. import load_budget
@@ -21,6 +20,11 @@ def main():
help="save plot to file (.pdf/.png/.svg)")
args = parser.parse_args()
if args.save:
from matplotlib import use
use('agg')
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(1, 1, 1)
Loading