Unix/Linux Go Back    

Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Plot python script output to file

Shell Programming and Scripting

Thread Tools Search this Thread Display Modes
Old Unix and Linux 07-21-2013   -   Original Discussion by newbie83
newbie83 newbie83 is offline
Registered User
Join Date: Nov 2011
Last Activity: 19 May 2014, 3:50 PM EDT
Posts: 86
Thanks: 56
Thanked 2 Times in 1 Post
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.
Attached Files
File Type: txt view_splicegraphs.txt (11.7 KB, 14 views)

Last edited by newbie83; 07-21-2013 at 01:59 AM..
Sponsored Links
Old Unix and Linux 07-22-2013   -   Original Discussion by newbie83
rajamadhavan rajamadhavan is offline
Registered User
Join Date: Aug 2010
Last Activity: 11 August 2014, 2:25 AM EDT
Location: Bangalore, India
Posts: 279
Thanks: 4
Thanked 58 Times in 57 Posts
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.
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Shell output with plot a tree structure. ponmuthu Shell Programming and Scripting 1 01-08-2013 12:01 PM
script to mail monitoring output if required or redirect output to log file aix_admin_007 Shell Programming and Scripting 4 10-22-2012 09:49 PM
Awk script to run a sql and print the output to an output file adept Shell Programming and Scripting 4 06-10-2012 11:40 AM
Shell script to run a python program on multiple entries in a file ad23 Shell Programming and Scripting 2 11-11-2010 12:23 PM

All times are GMT -4. The time now is 09:35 AM.