Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using gnuplot in perl

Status
Not open for further replies.

JackTheRussel

Programmer
Joined
Aug 22, 2006
Messages
110
Location
FI
Hi again.

I know how to open gnuplot in perl
Code:
system("/bin/gnuplot")

But I dont know how I can give file to gnuplot where I have
tasks which gnuplot should do

Example I would like to open gnuplot and give it file where I have tasks:

file:
Code:
set xrange [-pi:pi]
set grid
plot sin(x), cos(x)
 
I solved it.
Sorry to bother.

system("/bin/gnuplot file")
 
well, no worries, I learned something ;-)

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top