|
From: George P. <gp...@bi...> - 2014-11-27 16:35:55
|
Hello Ethan,
Thanks for this; it seems to work!
So, the expression
($3 < val ? -1 : 2)
means "if the number in column $3 is less than val then assign it to black
and if not assign to white"? I am not sure I understand the part after the
question mark (ternary operator)
Thanks again.
George
> Out-of-range z values are assigned the limiting colors in the palette,
so I would try
> set cbrange [0:1]
> plot "rmsdist4gnu_scale_1_30000.dat" using 1:2:($3 < val ? -1 : 2) with
> image
> (but I haven't actually tested that, so maybe I'm missing something) On
Thu, Nov 20, 2014 at 6:47 AM, George Patargias <gp...@bi...> wrote:
>> Hello,
>> I want to plot a 3-column data file using a black-white color scale. I
was wondering what is the syntax that allows those values of the 3rd
column to be colored black if they are smaller than a cut-off value and
white if they are larger than the same cut-off value
>> The three relevant lines from my script are
>> set cbrange [0.0:1.0]
>> set palette defined (0.0 "black", 1.0 "white")
>> plot "rmsdist4gnu_scale_1_30000.dat" using 1:2:3 with image
>> I know that is the last line that needs a different syntax but I am not
sure what.
>> Many thanks in advance.
>> Dr. George Patargias
>> Postdoctoral Research Fellow
>> Biomedical Research Foundation
>> Academy of Athens
>> 4, Soranou Ephessiou
>> 115 27
>> Athens
>> Greece
>> Office: +302106597568
>> ------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from
Actuate! Instantly Supercharge Your Business Reports and
Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration &
more
>> Get technology previously reserved for billion-dollar corporations,
FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
>> gnuplot-info mailing list
>> gnu...@li...
>> Membership management via:
>> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
Dr. George Patargias
Postdoctoral Research Fellow
Biomedical Research Foundation
Academy of Athens
4, Soranou Ephessiou
115 27
Athens
Greece
Office: +302106597568
|