Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail From: =?ISO-8859-1?Q?Hans-Bernhard_Br=F6ker?= Newsgroups: comp.graphics.apps.gnuplot Subject: Re: plot number variable Date: Thu, 31 May 2012 21:41:00 +0200 Lines: 23 Message-ID: References: <10024470-1ab0-4059-868d-704feb82e8c4@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.dfncis.de TWUygFAE+9K7ow/u6iDoOgN8f1XH46U7im4IQGgWktKPKDw0GkcQH+C+/5Xmap4DpVcj1Nqw0G Cancel-Lock: sha1:uI10X0zlrhuWBfLee5E5blu/fo0= User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120420 Thunderbird/12.0 In-Reply-To: <10024470-1ab0-4059-868d-704feb82e8c4@googlegroups.com> Xref: csiph.com comp.graphics.apps.gnuplot:1168 On 31.05.2012 13:35, tom wrote: > I ws wondering if there was the possibility (it night already exists) > to have a variable (a GPVAL_PLOTNUM) with the current plot being > plotted when plotting several files or functions altogether. gnuplot has enough capabilities already to let you create this one by yourself: > plot 'file1' u 1:2:(GPVAL_PLOTNUM) w l palette, \ > 'file2' u 1:($2+GPVAL_PLOTNUM):(GPVAL_PLOTNUM) w l palette, \ > sin(x*GPVAL_PLOTNUM) make that plot plotnum=0, \ 'file1' u 1:2:(plotnum) w l palette, \ plotnum=plotnum+1, \ 'file2' u 1:($2+plotnum):(plotnum) w l palette, \ plotnum=plotnum+1, \ sin(x*plotnum)