Can matplotlib.use("agg") be removed from create_injections.py?
I use some things from bilby_pipe, but don't want it to change my matplotlib backend. Currently, if you just import bilby_pipe
the chain of standard imports in from __init__.py
will import create_injections.py
which sets matplotlib.use("agg")
. Does create_injections.py
really need to set the matplotlib backend? If not it would be good to get rid of it (on my local machine, if I've imported bilby pipe in an ipython terminal, it complains if I subsequently try plotting as my machine does not have the agg backend, it sets "TkAgg" by default.) I can add an MR if this is ok.
Edited by Matthew Pitkin