2014-06-25 46 views

回答

0

對於熱圖,您必須稍微更改數據文件的格式。具有不同x值的零件必須由單個空行分隔。使用下面的文件data.dat

1 1 12 
1 2 15 
1 3 34 

2 1 45 
2 2 15 
2 3 12 

3 1 34 
3 2 09 
3 3 02 

你得到一個不錯的劇情與腳本

set autoscale fix 
set xtics 1 
set ytics 1 
set palette rgb 21,22,23 

plot 'data.dat' with image notitle 

與4.6.5結果是:

enter image description here

0

使用選項每:: 1你可以跳過第一行(帶標題)。
使用我使用的gnuplot版本,不需要修改添加空行的數據(即使它是很好的做法)。與gnuplot的生成

set autoscale fix 
set xtics 1 
set ytics 1 

set palette defined (0 "black", 1 "red", 2 "orange") 
plot 'data.txt' every ::1 using ($1):($2):($3) with image notitle 

劇情4.6 enter image description here