|
From: Tatsuro M. <tma...@ya...> - 2007-12-12 05:16:44
|
This just error corection.
> If (fabs((double)(t1-(double)tcount/CLOCKS_PER_SEC/60 )< allowance){
should be
If (fabs(((double)t1-(double)tcount/CLOCKS_PER_SEC/60.0 ))< allowance)){
Tatsuro
--- Tatsuro MATSUOKA <tma...@ya...> wrote:
> Hello
>
> OK,you are using C.
>
> *******************
>
>
> I recommend you make dummy 'graph.eps' before exectuting your program.
>
> $ gv -watch graph.eps &
>
> Have our procedure been carried out in the for or while loop?
> If so, you check the time using the clock() function in every loop.
> (about the clock(), you see the end of file)
> If the time difference of the clock with in allowance.
>
>
> If (fabs((double)(t1-(double)tcount/CLOCKS_PER_SEC/60 )< allowance){
> tcount++;
> (ploting proceducer)
> :
> :
>
> }
>
> (ploting proceducer)
>
> plot graph by post eps term.
> Use set out like
> set out 'graph.eps' and plot graph
> then gv graph will be flushed every one min.
>
> Rename 'graph.eps' by proper filename like acording to the minutes 'g21min.eps'
> to save every minute file.
> Time indices like 01, 02 ... can be indiacate like sprintf(fname, "g%2dmin", tcount);
>
>
> Recently I do not use the latex, I cannot tell you correctly.
>
> Please make latex template, which incules (2,4, 6.. youlike ) eps files in oder.
>
> like
> \includegraphics[height=3cm,width=5cm]{'g21min.eps'}
>
> Execute latex and make a dvi file and conert to s ps file by the 'dvi2ps'.
> You can see the graphs in one ps file via gv.
>
> That's the way I consider.
>
> Others may have more good idea.
>
>
> Tatsuro
>
>
>
> ********example of using clock()
> #include <time.h>
> #include <stdio.h>
> int main(void)
> {
> int i;
> int n = 0;
> clock_t t1;
> clock_t t2;
> printf("CLOCKS_PER_SEC = %f\n", (double)CLOCKS_PER_SEC);
> t1 = clock();
> for (i = 0; i < 100000; i++) n *= i;
> t2 = clock();
> printf("time = %10.30f\n", (double)t2 - t1);
> t1 = clock();
> for (i = 0; i < 10000000; i++) n *= i;
> t2 = clock();
> printf("time = %10.30f\n", (double)t2 - t1);
> }
>
> --- Mostafijur Rahman <mos...@ya...> wrote:
>
> > Thank you for your quick reply. Actually I am doing research on embedded Linux. I am using C
> > language for my research. I can access Gnu plot using C language using Linux. Now I am able to
> > show the current graph.Please can you tell me accurately about the topics that I have to know
> > for sequential graph plot?
> >
> > If you think that I can get help from any website or any person please give me address.
> >
> > If I able to solve this problem I will inform you.
> >
> > Thanks a lot.
> >
> >
> >
> > ----- Original Message ----
> > From: Tatsuro MATSUOKA <tma...@ya...>
> > To: Mostafijur Rahman <mos...@ya...>; gnu...@li...
> > Cc: me <mat...@nu...>
> > Sent: Wednesday, December 12, 2007 10:50:52 AM
> > Subject: Re: [Gnuplot-info] How can I save every 10 mins [Suppose] graph and want to see after
> 1
> > H all of them.
> >
> >
> > Hello
> >
> > The gnuplot is a simple graph plotting soft and does not have such
> > multi-functionality.
> > If I want to do this, I will write shell script and combine some
> > softwares, gnuplot-eps terminal,
> > ghostscript and gv.
> >
> > I think that is UNIXy way to do it.
> >
> >
> > I'm not a UNIX user but a cygwin user on Windows and use the cygwin for
> > realising such software
> > combination.
> >
> > If you are "true" unix user, you can do it by yourself.
> >
> > Regards
> >
> > Tatsuro
> >
> >
> > --- Mostafijur Rahman <mos...@ya...> wrote:
> >
> > > Hello
> > >
> > > I want to show continuous graph using Gnu plot [ Version: 4.0, Linux
> > kernel: 2.6, UBUNTU]. That
> > > means after 1 hour I want to see previous every 10 mins graph.
> > >
> > > 1. Have any opportunity in GNU plot to do this ?
> > >
> > > 2. Is it possible to show scroll bar in Gnu plot ?
> > >
> > > If possible please can you tell me how?
> > >
> > >
> > >
> > >
> > >
> > ____________________________________________________________________________________
> > > Be a better friend, newshound, and
> > > know-it-all with Yahoo! Mobile. Try it now.
> > > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> > > >
> > -------------------------------------------------------------------------
> > > SF.Net email is sponsored by:
> > > Check out the new SourceForge.net Marketplace.
> > > It's the best place to buy or sell services for
> > > just about anything Open Source.
> > > http://sourceforge.net/services/buy/index.php>
> > _______________________________________________
> > > Gnuplot-info mailing list
> > > Gnu...@li...
> > > https://lists.sourceforge.net/lists/listinfo/gnuplot-info
> > >
> >
> >
> > --------------------------------------
> > New Design Yahoo! JAPAN 2008/01/01
> > http://pr.mail.yahoo.co.jp/newdesign/
> >
> >
> >
> >
> >
> >
> > ____________________________________________________________________________________
> > Never miss a thing. Make Yahoo your home page.
> > http://www.yahoo.com/r/hs
>
>
> --------------------------------------
> New Design Yahoo! JAPAN 2008/01/01
> http://pr.mail.yahoo.co.jp/newdesign/
>
--------------------------------------
New Design Yahoo! JAPAN 2008/01/01
http://pr.mail.yahoo.co.jp/newdesign/
|