gnuplot,隐藏默认xtics,添加xtics

tom*_*sen 7 plot gnuplot

我试图从一个图(文本标签和小垂直线)中删除xtics并替换为我自己的自定义xtics(标签垂直线).我可以添加文本标签和箭头而不是xtics(http://gnuplot.sourceforge.net/demo/textrotate.html),但必须有一个更简单的解决方案.

我试过这个:

unset xtics
set xtics format ""
set xtics scale 0
set xtics add ("someTicLabel1" someFloat1)
set xtics add ("someTicLabel2" someFloat2)
Run Code Online (Sandbox Code Playgroud)

它摆脱了默认的xtics标签,但保留了xtic垂直线.我怎么摆脱他们?

tom*_*sen 8

我读了一个类似问题的解决方案(gnuplot:保持抽搐,删除标签),我意识到我的问题的解决方案是不使用set xtics add,而是设置xtics:

unset xtics
set xtics format " "
set xtics ("someTicLabel1" someFloat1, "someTicLabel2" someFloat2)
Run Code Online (Sandbox Code Playgroud)

问题解决了.谢谢.