Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #925

Re: Plotting a range accorrding to given numbers

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail
From Hermann Peifer <peifer@gmx.eu>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Plotting a range accorrding to given numbers
Date Thu, 09 Feb 2012 05:43:33 +0100
Organization albasani.net
Lines 45
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>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding 8bit
X-Trace news.albasani.net ZbV66IeQ3UxGd4TmGIsoa27MlnQXtG6oqOGrOiclavoQFUAAQx3UH6vT0dmngKQtorypizD2Ojoy/8swkBNb/g==
NNTP-Posting-Date Thu, 9 Feb 2012 04:43:25 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="W1rGhhVWy7ZyQWxI7sm+zlB+8+cnuNSZAaYmK/xAq18J06HHb5JXRWnptt28Yh9WWSwoT1wWidDIihHWynR+SmYZGeh96j2KFCfW2HJEEgBE9FUL8e92fNaF/e3bIfE7"; mail-complaints-to="abuse@albasani.net"
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1
In-Reply-To <9p591rFh1tU1@mid.dfncis.de>
Cancel-Lock sha1:woWiJ+XUcD1pAN3+ne+/gchD+50=
Xref x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:925

Show key headers only | View raw


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 | NextPrevious in thread | Find similar


Thread

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