gnuplot impulse color from third column when using polar coordinates -
i'm still pretty new gnuplot been playing lot lately. have data set angles (degree), times delay , depth, find relevant display in polar coordinates color of impulses depending on depth. works fine when using normal x,y coordinates, when using polar coordinates, color wrong...
let's data test.txt:
15 0.2 60 30 0.1 50 35 0.4 10 60 0.2 70 90 0.3 12 120 0.2 5
if do:
set palette defined ( 0 "red", 1 "yellow", 2 "cyan", 3 "blue", 4 "magenta") set cbrange [0:80] set xrange [0:180] plot "test.txt" u 1:2:3 impulses lw 2 lc palette
it's good!
but if use same palette , do:
set polar set angles degrees set xrange[0:0.5] set yrange[-0.5:0.5] plot "test.txt" u 1:2:3 impulses lw 2 lc palette
i nice polar coordinates graph not right color impulses... what's wrong this? i've seen post explaining how color impulses using "lc variable" or "lc var z", did not work polar data... in advance help.
that seems bug in older gnuplot version. used following script have both outputs beside each other comparison:
set palette defined ( 0 "red", 1 "yellow", 2 "cyan", 3 "blue", 4 "magenta") set cbrange [0:80] set multiplot layout 1,2 set yrange [0:0.5] set xrange [0:180] plot "test.txt" u 1:2:3 impulses lw 2 lc palette set polar set angles degrees set xrange [-0.5:0.5] set yrange [0:0.5] replot unset multiplot
the wrong output version 4.4.4 is:
since version 4.6.0 colors correct:
Comments
Post a Comment