Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #2343

Re: exit from the reread loop

From Karl <mail.kfr@gmx.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: exit from the reread loop
Date 2014-03-14 10:54 +0100
Organization University of Karlsruhe, Germany
Message-ID <lfujjr$4c8$1@news.rz.uni-karlsruhe.de> (permalink)
References <lft1hp$edf$1@dont-email.me> <lfuego$2fd$1@news.rz.uni-karlsruhe.de> <lfugsj$nit$1@dont-email.me>

Show all headers | View raw


Am 14.03.2014 10:07, schrieb Michael:
> 14.03.2014 15:27, Karl пишет:
> 
>> Not clear what you mean. Can you show a small example script?
>>
>> you know
>>
>>    if (<rereadcondition>) reread
>>
>> , i guess? Also "pause -1" gives the uses an opportunity to stop a
>> script.
>>
>>   K
>>
> 
> We measure a long-term process. It's unknown when it will end. Here is a
> script:
> 
> set term wxt enh font ",12"
> set format y "%.2tE%+02T"
> unset key
> set grid xtics
> set grid ytics
> 
> plot "/home/michael/tmp/data.dat" u 2:5 w lines lw 2
> pause 5
> reread

You could check for differences between the last two plots. Say the x
axis in your plot gets ever longer:

====

if (!exists("nowmaxx")) nowmaxx = 0 # initialize the variable

lastmaxx = nowmaxx
nowmaxx = GPVAL_DATA_X_MAX

plot ...

if (lastmaxx <> nowmaxx) reread

====

there are other GPVAL_ status variables that are updated after every
plot. Or you could use "stats" on your datafile, and use one of the
stats status variables.

  K

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

exit from the reread loop Michael Okuntsov <proximum@land.ru> - 2014-03-14 02:40 +0700
  Re: exit from the reread loop Karl <mail.kfr@gmx.net> - 2014-03-14 09:27 +0100
    Re: exit from the reread loop Michael <proximum@land.ru> - 2014-03-14 16:07 +0700
      Re: exit from the reread loop Karl <mail.kfr@gmx.net> - 2014-03-14 10:54 +0100
        Re: exit from the reread loop Michael <proximum@land.ru> - 2014-03-14 17:06 +0700
          Re: exit from the reread loop Karl <mail.kfr@gmx.net> - 2014-03-19 16:03 +0100
            Re: exit from the reread loop Karl <mail.kfr@gmx.net> - 2014-03-19 16:06 +0100
              Re: exit from the reread loop Michael Okuntsov <proximum@land.ru> - 2014-03-19 23:50 +0700

csiph-web