在GNUPLOT中绘制二维绘图(数据)的剖面
我试图利用底部的数据在特定位置绘制“热图”和“热图的一部分”。我想使用gnuplot中的在GNUPLOT中绘制二维绘图(数据)的剖面,gnuplot,Gnuplot,我试图利用底部的数据在特定位置绘制“热图”和“热图的一部分”。我想使用gnuplot中的每个命令来执行此操作,但我失败了every::13::17:应该绘制从第13行到第17行的数据。我从gnuplot得到一个错误 reset set terminal pngcairo set output 'stack.png' set palette defined (0 "white", 1 "red") unset key set style fill solid #-----------------
每个命令来执行此操作,但我失败了every::13::17:
应该绘制从第13行到第17行的数据。我从gnuplot得到一个错误
reset
set terminal pngcairo
set output 'stack.png'
set palette defined (0 "white", 1 "red")
unset key
set style fill solid
#----------------- 2D plot ---------------
plot 'stack.dat' using 1:2:(log10($3)) with boxes linecolor palette notitle
# ---- PLot a section of the 2D plot ----------
set output 'oups.png'
plot 'stack.dat' using 2:(log10($3)) every ::13::17: with lines notitle
“stack.dat”是数据文件名
1 1 0.081051938235759735
1 2 0.039051856845617294
1 3 0.017708625644445419
1 4 0.053782138973474503
1 5 0.069525197148323059
2 1 0.046054631471633911
2 2 0.005992549471557140
2 3 0.010819308459758759
2 4 0.001308800885453820
2 5 0.032604649662971497
3 1 0.078480839729309082
3 2 0.000435109512181953
3 3 0.073167815804481506
3 4 0.052882101386785507
3 5 0.016808584332466125
4 1 0.060769289731979370
4 2 0.028200428932905197
4 3 0.031424820423126221
4 4 0.052520859986543655
4 5 0.078694045543670654
5 1 0.029850590974092484
5 2 0.027807384729385376
5 3 0.036195535212755203
5 4 0.026242787018418312
5 5 0.048620097339153290
我怎样才能让它工作?
有没有更好的方法来绘制热图的各个部分?简单的答案是使用
使用2:(log10($3))every::2::2和notitle行绘制“stack.dat”
当您有多个记录块时,数据文件中的行与记录之间存在区别。因此,为了指定数据序列,需要块
和记录
索引。查看文档以了解更多信息(请参见每一个):