gnuplot:来自同一曲线图中两个不同文件的轮廓和热图 [英] gnuplot: contour and heatmap from two different files in the same splot

查看:101
本文介绍了gnuplot:来自同一曲线图中两个不同文件的轮廓和热图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用以下代码绘制两个2D标量,一个作为热图,一个作为叠加轮廓.

I am trying to plot two 2D scalar quantities, one as a heatmap and one as superimposed contour, using the following code:

set contour base
set cntrparam levels incremental 0,0.25,1.25
unset surface
set table cont2.dat
splot 'vr245.gnu'
unset table
reset
set xrange [1:215]
set yrange [0:3.1415925025940E+00]
set cbrange [7:17]
unset key
set view map
set palette rgbformulae 33,13,10
splot 'f_aveFe_245.gnu' u 1:2:3 with pm3d, "cont2.dat" u 1:2:3 w l

gngnlot产生的结果

Result produced by gnuplot

如您所见,轮廓在左侧有伪影.我该如何解决这个问题?谢谢!

As you can see the contour has artifacts on the left. How can I fix this problem? Thank you!

输入文件在这里.

推荐答案

您可以为一个绘图中的各个绘图选择性地打开或关闭曲面的轮廓绘制.在脚本中定义pm3dcontours,停用第一个轮廓,并禁用

You can selectively switch on or off contouring and plotting of the surface for individual plots in a single splot. Define both pm3d and contours in the script, deactivate contours for the first and surface for the

reset
set contour base
set cntrparam levels incremental 0,0.25,1.25
set cntrlabel onecolor
set autoscale xfix
set autoscale yfix
set cbrange [7:17]
unset key
set view map
set palette rgbformulae 33,13,10
splot 'f_aveFe_245.gnu' u 1:2:3 with pm3d nocontour, \
    'vr245.gnu' u 1:2:3 w l lc rgb "black" nosurface

这篇关于gnuplot:来自同一曲线图中两个不同文件的轮廓和热图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆