Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #925
| From | Hermann Peifer <peifer@gmx.eu> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: Plotting a range accorrding to given numbers |
| Date | 2012-02-09 05:43 +0100 |
| Organization | albasani.net |
| Message-ID | <jgvitc$mhs$1@news.albasani.net> (permalink) |
| References | <jg98if$kbi$1@news.albasani.net> <9or4tsFmgjU2@mid.dfncis.de> <jgh08u$7m4$1@news.albasani.net> <9p591rFh1tU1@mid.dfncis.de> |
On 04/02/2012 18:43, Hans-Bernhard Bröker wrote: > On 03.02.2012 16:59, Gudrun wrote: > >> I just want to plot x-column, y-column, and error-column with the help >> of the index-column. > > The nature of that "help" is still a bit unclear, because the index > column in your example file is deceptively simple. As-is, it's actually > superfluous, because it's just the line number. So the 'every' option I > mentioned before could actually do what you want in this particular case. > > The question remains what is supposed to happen if the index column > were, say > > 0 > 5 > 1 > 3 > 2 > 4 > > or > > 5 > 4 > 3 > 2 > 1 > 0 > I would suggest something like: plot "<( awk '$1 > 0 && $1 <= 3' my.dat)" ... The above would ignore the order of the values in the first column and also plot in case of multiple occurrences of 1, 2 or 3. There are other AWK-Oneliners for only plotting the first occurrence of something, the last one, a random one, etc. Occasionally, people in this group recommend to do data pre-processing with AWK and similar tools and use gnuplot for plotting only. I can only agree. Hermann
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Find similar
Plotting a range accorrding to given numbers Gudrun <bestenborstel@gmail.com> - 2012-01-31 17:31 +0000
Re: Plotting a range accorrding to given numbers Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2012-01-31 22:31 +0100
Re: Plotting a range accorrding to given numbers Gudrun <bestenborstel@gmail.com> - 2012-02-03 15:59 +0000
Re: Plotting a range accorrding to given numbers Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2012-02-04 18:43 +0100
Re: Plotting a range accorrding to given numbers Gudrun <bestenborstel@gmail.com> - 2012-02-06 12:07 +0000
Re: Plotting a range accorrding to given numbers Hermann Peifer <peifer@gmx.eu> - 2012-02-09 05:43 +0100
csiph-web