我有一個製表符分隔的數據文件,其中包含一些(雙空白行分隔)數據集,我想爲它們中的每一個繪製一條線。我想能夠設置線型(由此我指的是實體/虛線/點)。我希望每一行都是不同的顏色。在使用「linecolor變量」時可以在gnuplot中設置「線型」嗎?
我可以用這個圖他們都不同的顏色:
plot 'example.dat' using 1:2:(column(-2)) with lines linecolor variable
而且我可以設置線型,但使用該地塊它們都是一樣的顏色:
plot 'example.dat' using 1:2:(column(-2)) with lines linetype 5
但是,當我將它們結合起來,線型不是我設置的(在這種情況下,我只是得到一條實線)。
plot 'example.dat' using 1:2:(column(-2)) with lines \
linetype 5 linecolor variable
有沒有辦法做到這一點?
我使用的是gnuplot 4.6,用x11和postscript終端嘗試過。