Skip to content
Snippets Groups Projects
Verified Commit 6f891180 authored by Duncan Macleod's avatar Duncan Macleod
Browse files

gwinc.ifo: defer plot backend as much as possible

parent 960be18c
No related branches found
No related tags found
1 merge request!113Defer setting plot backend as much as possible
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)
......
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