Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #1168
| From | Hans-Bernhard Bröker <HBBroeker@t-online.de> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: plot number variable |
| Date | 2012-05-31 21:41 +0200 |
| Message-ID | <a2pvq9Fh9fU1@mid.dfncis.de> (permalink) |
| References | <10024470-1ab0-4059-868d-704feb82e8c4@googlegroups.com> |
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)
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar
plot number variable tom <tommaso.vinci@gmail.com> - 2012-05-31 04:35 -0700
Re: plot number variable sfeam <sfeam@users.sourceforge.net> - 2012-05-31 09:19 -0700
Re: plot number variable Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2012-05-31 21:41 +0200
Re: plot number variable tom <tommaso.vinci@gmail.com> - 2012-06-01 00:25 -0700
csiph-web