【发布时间】:2016-10-22 09:32:02
【问题描述】:
我正在尝试在 Gnuplot 4.6 patchlevel 4 中使用以下代码在 splot 中绘制一条虚线:
set terminal "pdfcairo" enhanced dashed size 15,10
set pm3d map
set output "test.pdf"
splot 'map.dat' using 1:($2/1000):3 notitle, \
'line1.dat' using 1:($2/1000):1 notitle with lines ls 2, \
'line2.dat' using 1:($2/1000):1 notitle with lines ls 2
unset output
热图有效,line1.dat 也有效。然而,第二条线看起来大多是实心的。不同之处在于 line1.dat 有 70 个条目,而 line2.dat 有 900 个条目。第二行在两点之间有一个跳转,并在此处用虚线表示。
有人知道我可以如何更改点密度以使整条线显示为虚线。更改原始数据文件不是一种选择。
感谢您的帮助,
没有
编辑:
我发现的一种解决方法是
splot 'line2.dat' every ...
但这可能会在数据跳转时变得不方便。
【问题讨论】:
标签: gnuplot heatmap dotted-line