Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2959
| From | Karl Ratzsch <mail.kfr@gmx.net> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: reduce plot line occurance |
| Date | 2015-06-29 15:03 +0200 |
| Organization | solani.org |
| Message-ID | <mmrfng$5t6$1@solani.org> (permalink) |
| References | <2a2403cb-fe62-49dc-bb73-6127a946027a@googlegroups.com> |
Am 29.06.2015 um 14:00 schrieb dxtans@gmail.com: > Hello, > I have a conf file which can plot many lines depending on the file, So I have tried using the do for loop , but keep getting > invalid expression. > > Can anyone point me in the direction, where I can reduce the number of plot lines below, into a for loop. > > plot 'versions.txt' u 2:xtic(1) title columnheader, \ > '' u 3:xtic(1) title columnheader, \ > '' u 4:xtic(1) title columnheader, \ > '' u 5:xtic(1) title columnheader, \ > '' u 6:xtic(1) title columnheader, \ > '' u 7:xtic(1) title columnheader, \ > '' u 8:xtic(1) title columnheader > you cannot directly but a variable in the using statement, instead use the column() function. plot for [i=2:8] datafile using (column(i)):xtic(1) title columnheader K
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar
reduce plot line occurance dxtans@gmail.com - 2015-06-29 05:00 -0700
Re: reduce plot line occurance Karl Ratzsch <mail.kfr@gmx.net> - 2015-06-29 15:03 +0200
Re: reduce plot line occurance Karl Ratzsch <mail.kfr@gmx.net> - 2015-06-29 18:08 +0200
Re: reduce plot line occurance dxtans@gmail.com - 2015-06-29 10:43 -0700
csiph-web