Skip to content
Snippets Groups Projects
Commit 900fd7cc authored by Jameson Rollins's avatar Jameson Rollins
Browse files

Merge branch 'gwinc.ifo-plt-backend' into 'master'

Defer setting plot backend as much as possible

See merge request !113
parents 960be18c 6f891180
No related branches found
No related tags found
1 merge request!113Defer setting plot backend as much as possible
Pipeline #169452 passed
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