如何在 gnuplot 中添加 3D 绘图上的垂直线?
How to add in gnuplot a vertical line on a 3D splot?
我有一个带有选项的 3D 图:
set view map
我想在(30,0)到(30,20)之间添加一条垂直线,我试过:
set arrow from 30,0 to 30,20 nohead lc rgb 'red'
splot 'data.csv' using 1:2:3 with pm3d
但是我没有看到任何一行,我做错了什么?
这是我想添加垂直线的图像
“技巧”是 front
。检查 help layers
.
代码:
### arrow on top of map view
reset session
set view map
set arrow 1 from 50,0 to 50,20 nohead lc rgb 'red' front
set xrange[0:140]
set yrange[0:20]
splot x*y/3000 w pm3d notitle
### end of code
结果:
我有一个带有选项的 3D 图:
set view map
我想在(30,0)到(30,20)之间添加一条垂直线,我试过:
set arrow from 30,0 to 30,20 nohead lc rgb 'red'
splot 'data.csv' using 1:2:3 with pm3d
但是我没有看到任何一行,我做错了什么?
这是我想添加垂直线的图像
“技巧”是 front
。检查 help layers
.
代码:
### arrow on top of map view
reset session
set view map
set arrow 1 from 50,0 to 50,20 nohead lc rgb 'red' front
set xrange[0:140]
set yrange[0:20]
splot x*y/3000 w pm3d notitle
### end of code
结果: