Gnuplot:如何只在顶部绘制没有刻度标签的xtics

时间:2014-08-04 15:44:04

标签: plot border gnuplot

我想在顶部绘制xtics但没有其tic标签:

这就是我想要的:

enter image description here

这是我尝试过的代码:

set xtics mirror;
set border 2+4;
plot x;

这给了我:

enter image description here

如何修改脚本以获得我想要的内容?

1 个答案:

答案 0 :(得分:5)

您可以使用set format x ''删除刻度标签,但仍然会将xtics留在底部。

在我看来,最好的方法是只使用x2轴

set ytics nomirror
unset xtics
set x2tics nomirror
set format x2 ''
set border 2+4
plot x axes x2y1

enter image description here