我尝试使用以下方法创建热图动画:矩阵和“带图像”,但我想逐点创建动画。我设法逐列进行,但不能逐点进行
这是我的妈妈
$Data <<EOD
2 1 9 3 9 4 4 9 1 4 1
9 0 4 9 0 4 2 3 6 7 1
1 8 5 5 2 1 5 4 1 5 9
7 3 5 8 4 7 3 6 4 7 0
9 0 6 5 5 9 0 5 0 0 2
2 6 3 2 1 1 4 0 3 5 7
9 2 6 8 9 2 2 5 1 5 2
3 2 4 9 6 0 0 1 9 3 8
6 7 1 9 1 0 8 9 1 7 6
2 7 3 0 3 6 8 5 5 1 4
9 0 2 6 4 6 9 4 5 0 8
EOD
stats $Data nooutput # get the number of rows
lin = STATS_records
col = STATS_columns
nb_p = lin * col
print "lin: " . lin
print "col: " . col
print "nb_p: " . nb_p
do for [cur = 0 : nb_p] {
plot $Data matrix using 1:2:3 every ::::cur with image title "n: ".cur
pause 1
}
我也尝试:
do for [c = 0 : col] {
do for [l = 0 : lin] {
plot $Data using c:l with points pt 5 title 'c: '.c.' l: '.l
pause 1
}
}