this is the first time that I use gnuplot
. Therefore my question may be so obvious to solve but I could not figure it out. (I've already search on both stackoverflow and internet)
Now I need to plot number of dots on the plot and my file is like that:
dots-Xcoord dots-Ycoord Color_of_dot
> example:
1.1 0.234 "black"
2.15 3.1 "black"
1.76 0.94 "black"
3.15 6.12 "blue"
3.66 2.14 "blue"
So, to draw these dots on the graph I typed the following commands( non of them worked):
plot 'test.dat' using 1:2:3 with points pointtype 7 pointsize 1 lc variable
plot 'test.dat' using 1:2:3 with points pointtype 7 pointsize 1 lc 3
However when I type the command like that: plot 'test.dat' using 1:2 with points pointtype 7 pointsize 1 lc "black"
It works. So my question is that how could I assign color of a dot from a file?