在gnuplot中删除z轴 [英] Remove z axis in gnuplot

查看:67
本文介绍了在gnuplot中删除z轴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下gnuplot脚本:

I have the following gnuplot script:

set xyplane at 0    
set style line 2 lc rgb 'black' pt 7   # circle
set border 15
spl 'N.dat' u 1:2:3:($5/10.) w p ls 2 ps variable noti

可以在此处找到文件N.dat的地方 http://www.filedropper.com/n_1.

Where the file N.dat can be found here http://www.filedropper.com/n_1 .

我要删除与屏幕右下方出现的与z轴平行的边框,请参见上面脚本的以下输出:

I want to remove the border parallel to the z-axis that appears on the bottom-right side of the screen, see the following output of the above script:

输出

请注意,我正在使用命令set border 15.以2为底的数字15是000000001111,即中间的四个数字全为零:这些数字与图中的垂直轴相对应,此处均为零,因此应该根本没有垂直轴,请参见 http://gnuplot.sourceforge.net/docs_4.2/node162.html .

Note that I am using the command set border 15. The number 15 in base 2 is 000000001111 , i.e. the four digits in the middle are all zero: these digits correspond to the vertical axes in the plot and they are all zero here, thus there should be no vertical axes at all, see http://gnuplot.sourceforge.net/docs_4.2/node162.html .

但是,仍然有两个垂直轴.特别是,您知道如何仅摆脱右下垂直轴吗?

However, two vertical axes are still there. In particular, you know how to get rid of the bottom-right vertical axis only?

推荐答案

那些垂直线不是轴,因此您不能明确地将其关闭.但是,如果您的绘图范围略大于实际的x和y数据范围,则可以将其删除.在这里,要删除右下角的行,我将yrange更新为从-1e-6开始:

Those vertical lines aren't axes, and you cannot explicitely switch them off. You can however remove them, if your plotting ranges are slightly larger than the actual x and y data ranges. Here, to remove the bottom-right line, I updated the yrange to start at -1e-6:

set xyplane at 0
set style line 2 lc rgb 'black' pt 7 # circle
set yrange [-1e-6:*]
spl 'N.dat' u 1:2:3:($5/10.) w p ls 2 ps variable noti

这篇关于在gnuplot中删除z轴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆