【发布时间】:2015-01-13 22:56:54
【问题描述】:
我是 gnuplot 的新手。我正在尝试在 x-y 平面上叠加等高线图和一些数据点。
我的轮廓数据已给出 (surface1.txt) here
给定单点数据 (points1.txt) here
我正在尝试运行此脚本:
set multiplot
# plot the contour from the surface1.txt
unset key
set dgrid3d
unset surface
set contour base
# these values need to be set (requirement)
set cntrparam level incremental 0.16, 0.259, 4.47
set view 0,0
unset ztics
splot "surface1.txt" with lines
# plot the points on the x-y plane
unset xtics
unset ytics
splot "points1.txt"
unset multiplot
我得到了这个输出:
如你所见,我试图放在 x-y 平面上的单点也作为轮廓,我需要做的是:
- 将“points1.txt”中的点显示为单个点(不是轮廓)
- 情节已缩小,我需要全屏图像。
- 将 y 轴刻度从右向左垂直移动。
- 删除所有颜色。我需要一张灰度图。
请帮忙。
编辑: 这种方式我也试过--
set contour base
set cntrparam bspline
set cntrparam level incremental 0.16, 0.259, 4.47
set view map
set dgrid3d
unset key
splot 'surface1.txt' nosurface with lines, \
'points1.txt' nocontour
我得到了这个情节--
【问题讨论】: