user2138251
user2138251

Reputation:

Remove z axis in 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

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:

output with gnuplot 4.6.6

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?

Upvotes: 2

Views: 1711

Answers (1)

Christoph
Christoph

Reputation: 48390

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

enter image description here

Upvotes: 1

Related Questions