image
Physics Forums Logo
image
image
* Register * Upgrade Blogs Library Staff Rules Mark Forums Read
image
image   image
image

image Calling Gnuplot from FORTRAN Share It Thread Tools Search this Thread image
Old Nov24-09, 07:25 PM                  #1
Abraham

Abraham is Offline:
Posts: 31
Calling Gnuplot from FORTRAN

hello. I have a fortran code that has data points as output.

How do I get fortran to plot these data points using gnuplot?

Is there a way to call the external program from within fortran?

I am using fortran95, gfortran compiler. I'm on a windows machine, but
I'm connected remotely to the Unix machines in the lab.

Thanks,

Abraham
  Reply With Quote
Old Nov25-09, 09:32 AM                  #2
rdnck76

rdnck76 is Offline:
Posts: 2
Re: Calling Gnuplot from FORTRAN

Hi Abraham,

Try using the "system" subroutine.

Code:
CALL SYSTEM(gnuplot )
Whatever you put inside the parentheses gets passed to the command line (or terminal depending on your os.)
  Reply With Quote
image image
Reply
Thread Tools


Similar Threads for: Calling Gnuplot from FORTRAN
Thread Thread Starter Forum Replies Last Post
Fortran; Calling an executable that in turn runs an input file Aeroengie Programming & Comp Sci 1 Oct9-09 12:36 AM
calling shell in fortran yo6781 Programming & Comp Sci 1 Jul13-09 09:37 AM
Accessing Fortran Modules within a Fortran library from Fortran LLopes Programming & Comp Sci 0 Jul12-08 04:31 PM
gnuplot Pattielli Computing & Technology 3 May30-04 07:28 AM
Gnuplot gnome Computing & Technology 3 Nov28-03 04:13 PM

Powered by vBulletin Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. © 2009 Physics Forums
Sciam | physorgPhysorg.com Science News Partner
image
image   image