Gnuplot: save ticks, remove shortcuts

The x axis on my gnuplot looks something like this:

2 4 8 16 32 64 72 86 98 112 128 256 512 1024 ... 1048576

So, these are the log2 values ​​that go from 2, 4, 8 .. 1048576. The problem is that there are certain intermediate values, such as 72.86.98.112, etc., which are not log2 based values ​​and so others are close to each other so that the labels overlap. Is there a way to save ticks (i.e. Build values) but not display labels on the x axis? I want to display only those labels that are the exact power of 2, but I want to show all the values ​​on the graph.

Thanks.

+4
source share
1 answer

just define xtics manually ... for example:

set xtics ("2" 2,"4" 4, "8" 8,"16" 16,"32" 32,"64" 64) 
+10
source

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


All Articles