【发布时间】:2016-01-05 19:09:52
【问题描述】:
我有一个包含四列 X Y Z1 Z2 的数据文件,我想为每个 Z 创建一个单独的颜色图,但将等高线从第一个也绘制到第二个。
首先我为 Z1 和轮廓文件创建一个绘图
set terminal "pdfcairo" enhanced dashed size 5,5
set output "Output1.pdf"
set pm3d
unset surface
set view map
set contour
set cntrparam levels discrete 1.45,1.50
set table 'DATAFILE.contourZ1'
splot 'DATAFILE' using 1:2:3 notitle with lines
unset table
splot 'DATAFILE' using 1:2:3 notitle with lines
unset output
这给了我沿着 Z1=1.45 和 1.50 的两条等高线的颜色图。到目前为止,一切都很好。要将轮廓加载到我尝试的第二个图中
splot 'DATAFILE' using 1:2:4 notitle with lines,\
'DATAFILE.contourZ1' using 1:2:3 notitle with lines
但这只会给我 Z2 的颜色图,没有任何等高线。
有谁知道,我怎么能做到这一点?如果不能像我尝试过的那样简单,我也愿意接受其他方式:)
非常感谢!
【问题讨论】: