Remove z axis in gnuplot

拜拜、爱过 提交于 2019-12-29 09:04:28

问题


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

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

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:

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?


回答1:


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



来源:https://stackoverflow.com/questions/31027203/remove-z-axis-in-gnuplot

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!