Gnuplot 中 Z 轴标签的位置
- 我正在使用以下脚本绘制 3D Gnuplot 图表。
- 我的 Gnuplot 版本是 gnuplot 4.4 patchlevel 3。
- 我的问题是,使用 Z 轴标签的默认位置,它总是被剪切(放置在边界之外)。我想知道将 X/Y/Z 轴标签放置在我喜欢的图表坐标处的命令。
set pm3d set grid set palette defined (-1 "blue", 0 "white", 1 "red") set notitle set ztics 0.10 set xlabel "Label 1" set ylabel "Label 2" set zlabel "Label 3" splot "data" using ($1/$2):3:($4+$5) with pm3d notitle pause -1 set term post enhanced color "Serif" 20 set output "graph.eps" replot
- I am drawing a 3D Gnuplot graph with the following script.
- My Gnuplot version is
gnuplot 4.4 patchlevel 3
. - My problem is that with the default position of the Z-axis label, it's always getting cut (being placed outside the boundary). I would like to know the command to place X/Y/Z axis label at the coordinate on the graph as I prefer.
set pm3d set grid set palette defined (-1 "blue", 0 "white", 1 "red") set notitle set ztics 0.10 set xlabel "Label 1" set ylabel "Label 2" set zlabel "Label 3" splot "data" using ($1/$2):3:($4+$5) with pm3d notitle pause -1 set term post enhanced color "Serif" 20 set output "graph.eps" replot
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您想要调整
{offset}
选项,例如:将 xlabel 在 x、y 和 z 轴上相对于其原始位置移动大约 1 个字符。
根据帮助页面,您可以指定
first
、second
、graph
、screen
或之一用于偏移的坐标系的字符
(这是默认值):You want to tweak the
{offset <offset>}
option, for example:which moves the xlabel approximately 1 character in each of the x, y and z axes relative to its original position.
As per the help page, you can specify one of
first
,second
,graph
,screen
orcharacter
(this is the default) for the coordinate system to be used for the offset: