Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Michael Newsgroups: comp.graphics.apps.gnuplot Subject: Re: exit from the reread loop Date: Fri, 14 Mar 2014 17:06:19 +0700 Organization: A noiseless patient Spider Lines: 26 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 14 Mar 2014 10:06:19 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="35a26602bb90c688811ddf6aa0fd5b56"; logging-data="15520"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/pXXsHb8ri47pyK0uJC8F/" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.0 In-Reply-To: Cancel-Lock: sha1:Oa7xcS2IhBPjtM0P4l7fPQwPSPQ= Xref: csiph.com comp.graphics.apps.gnuplot:2344 14.03.2014 16:54, Karl пишет: > 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 > Oh, thanks! I just wasn't sure what condition should I use for exiting.