Gnuplot, hide default xtics, add xtics

I am trying to remove xtics from the graph (text labels and small vertical lines) and replace my own custom xtics (vertical line labels). I could add text labels and arrows without headings instead of xtics ( http://gnuplot.sourceforge.net/demo/textrotate.html ), but there should be a simpler solution.

I tried this:

unset xtics set xtics format "" set xtics scale 0 set xtics add ("someTicLabel1" someFloat1) set xtics add ("someTicLabel2" someFloat2) 

It gets rid of the xtics shortcuts by default, but horizontal vertical lines remain. How can I get rid of them?

+4
source share
1 answer

I read the solution to a similar problem ( gnuplot: save ticks, remove shortcuts ), and I realized that the solution to my problem is not to use set xtics add, but install xtics:

 unset xtics set xtics format " " set xtics ("someTicLabel1" someFloat1, "someTicLabel2" someFloat2) 

The problem is resolved. Thanks.

+5
source

Source: https://habr.com/ru/post/1492387/


All Articles