我正在努力尝试从datafile1绘制不均匀的二进制矩阵,并在其上绘制另一个变量的轮廓,该轮廓位于同一网格但另一个数据文件上。两个数据文件均为二进制矩阵形状。
# CONTOUR SETTINGS
set contour surface
set cntrparam level discrete 0.3,0.067
# PRINT CONTOUR ON TABLE
set table 'tablefile_contour'
splot 'contour_variable_field_binary' binary with l lt -1
unset table
# FIELD SPLOT
set view map;
splot 'field_to_be_plotted_2D_binary' binary with pm3d,\
'tablefile_contour' u 1:2:3 w p lt -1
基本上,我一直在尝试遵循互联网上的一些食谱。如果我尝试仅绘制绘图,则会获得2D图片。我想从“ contour_variable_field_binary”文件中放入等值线,因此我将其绘制在表文件上,并将其与要绘制的字段一起绘制。我做到了,我得到一张黑色的照片。如何叠加另一个文件的等值线?有什么线索吗?
由于我的建议太长,无法发表评论:
您是否尝试过将两个原始文件一起绘制?您可以使用禁用第一个文件的轮廓nocontour
,并使用以下命令禁用第二个绘图的曲面nosurface
:
set contour base
set cntrparam level discrete 0.3,0.067
set pm3d map
splot 'field_to_be_plotted_2D_binary' binary with pm3d nocontour,\
'contour_variable_field_binary' binary with l lt nosurface
由于我没有用于测试的数据,因此无法判断这是否正常工作。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句