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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fortran and gnuplot

Status
Not open for further replies.

aJCU

Programmer
May 4, 2007
5
GB
Hallo everybody,

I would like to launch a gnuplot script file from fortran.

I tried this:

h=system('D:\gpt35win\wgnuplot.exe gnuplot> load''surface''')

where surface is the script that I would like to launch. But it didn't work.

I am using the gnuplot version for windows.

Could anybody help me?

Thanks,
aJCU
 
In g77 (I'm not sure) I think

CALL SYSTEM('START /W D:\and_so_on\wgnuplot.exe gnuplot>load"surface"')

Should work

Or in Microsoft Developer's studio i=SYSTEM('....')

Check with something else than gnuplot, maybe the error is not in the fortran code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top