|
From: Amol H. <am...@gm...> - 2012-07-21 01:06:44
|
Best way to write a simple c++ code which prints the gnuplot syntax and
just pipe the executable with gnuplot like,
$ ./a.out | gnuplot
It will show you the animation of the data. The delay can be controlled via
c++ function system("sleep 1s")
On Jul 21, 2012 12:15 AM, "(((1/f)))" <fa...@gm...> wrote:
> Hi Nunzio,
>
> ......I use a simpler method.
>
> This is meant for a slightly different purpose, but you can modify it.
> The name of the file can be "xyz.gnu" or "xyz.gp" when you load it.
> Let me know if the script below helps. I just copied it from a folder
> from 2-3 months ago.
>
> cheers,
> -------------------------------------------------------
> (((1/f))) *http://fadereu.posterous.com/*
> -------------------------------------------------------
> *
> *
> *
> reset
> set terminal gif animate delay 10
> set obj 1 rectangle behind from screen 0,0 to screen 1,1
> set obj 1 fillstyle solid 1 fillcolor rgb "sandybrown"
> set key top right box tc rgbcolor 'white' font 'Helvetica,8'
> set label "ZetaTrek 2012" at 80,-110 tc rgbcolor "black" font 'Helvetica,8'
> set output 'apr02.gif'
> do for [t=0:30] {
> plot [-100:100] [-100:100] t*3 - x**2 ls 7, \
> t + 2*x ls 7, \
> t**2 + x ls 7, \
> 11*t - 23*x ls 7,\
> 5*x - t ls 7, \
> 7*x - t**3 ls 7, \
> 13*t - 4*x ls 3
> }
> *
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
|