You are not logged in.

#1 2008-09-16 23:44:34

tony5429
Member
Registered: 2006-03-28
Posts: 1,017

GNUplot

I just downloaded this programme because I thought it looked cool and I could use it for school. The way it is set up, the user runs 'gnuplot' and then is inside a new terminal where he/she can send it commands. Once in gnuplot, the command 'plot x+5' will create a graph of y=x+5. I was wondering if there is any way to do it all in one line rather than two steps (first open gnuplot, then send it a command). I am looking for something like

'plot x+5' > gnuplot

Any ideas anyone?

Offline

#2 2008-09-16 23:56:21

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: GNUplot

echo 'plot x+5' | gnuplot -persist

Does this do what you want?


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2008-09-16 23:58:41

Onwards
Member
From: Pakistan
Registered: 2007-04-18
Posts: 108

Re: GNUplot

There is a wrapper, called gplot (written in perl), for gnuplot, that makes plotting graphs a breeze. Try searching it on the web (I may have an old version of it with me).

P.S. Have a look at this link http://gplot.sourceforge.net/

Last edited by Onwards (2008-09-17 00:00:40)

Offline

#4 2008-09-17 00:28:10

tony5429
Member
Registered: 2006-03-28
Posts: 1,017

Re: GNUplot

Xyne wrote:
echo 'plot x+5' | gnuplot -persist

Does this do what you want?

Perfect; thanks!

gplot looks cool too - I might try that out sometime. thanks.

Offline

Board footer

Powered by FluxBB