Line plot in GnuPlot where line color is a third column in my data file?

后端 未结 3 1310
陌清茗
陌清茗 2020-11-28 07:59

I have a datafile that looks like this:

1 1.0 0
2 1.5 0
3 0.0 1
4 1.2 2
5 1.0 1
6 1.1 1

where the first column is my X value, the second co

3条回答
  •  情话喂你
    2020-11-28 08:30

    plot 'foo.dat' with lines linecolor variable
    

    or abbreviated:

    plot 'foo.dat' w l lc var
    

提交回复
热议问题