|February 27, 2007, 15:11||
GNU Plot doubt
some time ago I did something in GNU Plot that I can't remember. I loaded a data file which was still being written and after each update GNU plot automatically reloaded and refreshed the resulting plot. Does anyone know which command is used for doing it?
|February 27, 2007, 16:37||
Re: GNU Plot doubt
c Fortran-gnuplot interaction for real-time animation using named pipe
c This is a simple example of how gnuplot can be used to create
c real-time animation of data produced by running fortran 77 code.
c I put it in the searchable directory in a hope that it can be useful,
c but no guarantees of any kind: use it at your own risk. Too many
c frames per second can hang you system heavily.
c To understand how it works, you need to know what a named pipe is, and what
c plot '-' means in gnuplot: read the manuals.
c And, PLEASE, if you know why a.out > FIFOfile works
c but just a.out does not
c even though the gnuplot commands are written to the pipe and not
c to the standard output, send me an explanation to
c firstname.lastname@example.org (Sergei Chernyshenko) or
c by other means, see http://www.afm.ses.soton.ac.uk/ -> People.
c How to use:
c at the linux command prompt, type mkfifo FIFOfile
c compile this file and name the executable a.out .
c in an xterm window type gnuplot < FIFOfile
c in another window type a.out > FIFOfile
c do not use too many frames per second, the computer may hang.
c second(x) gives the CPU time in seconds. Replace if unavailable.
write(1,*) 'set xrange [-10:10]'
write(1,*) 'set yrange [-2:2]'
write(1,*)'set title \'Demonstrating animation Fortran-gnuplot'
1 ,' via named pipe\''
1 call second(x)
c 15 frames per second:
write(1,*) 'plot sin(x-',x,'),',' \'-\' w lp'
|Thread||Thread Starter||Forum||Replies||Last Post|
|Plot on a curve||Monica||FLUENT||1||July 11, 2012 00:24|
|A girl fail to plot velocity profile when mesh changes + Wall function||asherah||STAR-CCM+||0||February 19, 2010 18:45|
|Transfer low-res graphic file plot to excel plot||quarkz||Main CFD Forum||3||April 9, 2009 13:54|
|graph plot||anindya||Main CFD Forum||2||September 17, 2003 12:00|
|why can't I plot Y+ value?||Jiaying Xu||CD-adapco||2||August 18, 2001 10:56|