Warm tip: This article is reproduced from serverfault.com, please click

plot-如何在gnuplot中添加3D绘图上的垂直线?

(plot - How to add in gnuplot a vertical line on a 3D splot?)

发布于 2020-12-04 11:32:34

我有一个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

但是我什么也没看到,我在做什么错?这是我要在其上添加垂直线的图像 在此处输入图片说明

Questioner
RIXS
Viewed
11
theozh 2020-12-04 19:49:35

“招数”是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

结果:

在此处输入图片说明