plot - Gnuplot: Plotting different colors to each point using xticlabels and linepoints -
i'm trying plot graph linepoints , first column string , need use xticlabels plot data second column related it.
this data file, third column wish use set point color
"0000" 0 0 "0001" 9 0 "0010" 16 0 "0011" 25 1 "0100" 14 0 "0101" 23 0 "0110" 30 0 "0111" 39 1 "1000" 30 0 "1001" 39 0 "1010" 46 2 "1100" 44 0
i used:
set palette defined (0 "blue", 1 "yellow", 2 "red") plot "data.dat" using 2:xticlabels(1) linespoints ls 1 notitle
how can change command plot each point color use appropriate point color?
thanks in advance
if understand correctly, need:
plot "data.dat" using 0:2:3:xticlabels(1) linespoints ls 1 lc palette notitle
Comments
Post a Comment