|
From: Mahmood N. <nt_...@ya...> - 2013-09-03 18:08:33
|
The awk command works fine. Thank you all for the effort.
plot "< awk '/M$/{print $1\" \"$2}' data.txt" u 2
Regards,
Mahmood
________________________________
From: BBands <bb...@gm...>
To: Leo Butler <l_b...@us...>; gnuplot <gnu...@li...>
Sent: Tuesday, September 3, 2013 10:00 PM
Subject: Re: [Gnuplot-info] ploting if a special character exist in the line
Another way is to use the string operator: stringcolumn(3) or the
shorthand strcol(3). I should have seen that to start with.
John
On Tue, Sep 3, 2013 at 10:16 AM, Leo Butler
<l_b...@us...> wrote:
> It should be ($3 eq 'M' ? $2 : 1/0) except that $3 is parsed as a
> number, not a string, so even then you don't get what you want.
>
> So I expect that it compares the third column to 'M' and on a match return the second column. Isn't that? Now I receive
>
> None-numeric string found where a numeric expression was expected.
>
> I think
>
> plot "< awk '/M$/{print $1\" \"$2}' data.txt" u 1:2
>
> does what you want.
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
gnuplot-info mailing list
gnu...@li...
https://lists.sourceforge.net/lists/listinfo/gnuplot-info
|