Plot python script output to file

Hi all,

I`m trying to generate some plots using a python package named splicegrapher.
I have access to a cluster which does not allow X11 forwarding and as a result I get RuntimeError: could not open display error when I use one of the plotting scripts (attached).

How do I modify the script so that it plots the output to a file instead of trying to display it?

I`m not sure if this is the right forum to ask this question, please remove this thread if applicable.

I am not python expert, but splicegrapher user guide at this link
SpliceGrapher User?s Guide � SpliceGrapher 0.2.2 documentation

says this..
--
There are two ways to view the resulting graph: view_splicegraphs.py and plotter.py. The first script allows you to view a splice graph on your screen or, if you prefer, save it to a file. plotter.py is designed for file output and provides a more extensive set of options. We have provided an example plotter configuration file to get you started:
---

You can build on from this lead.