Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gnuplot: keep tics, remove labels

Tags:

gnuplot

The x axis on my gnuplot looks similar to this:

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

So these are log2 values that go from 2, 4, 8 .. 1048576. The problem is that there are certain intermediate values like 72,86,98,112 etc. which are not log2 based values, and are so close to each other that the labels overlap. Is there a way I can keep the tics (i.e. plot the values) but not display the labels on the x axis? I want to display only those labels that are an exact power of 2, but I want to show all values on the plot.

Thanks.

like image 868
jitihsk Avatar asked Jan 20 '12 19:01

jitihsk


People also ask

How do I remove tics gnuplot?

The tics may be turned off with the unset xtics command, and may be turned on (the default state) with set xtics. Similar commands control the major tics on the y, z, x2 and y2 axes.

What is Ytics in gnuplot?

The set ytics command controls major (labelled) tics on the y axis. Please see set xtics (p. ) for details.


1 Answers

just define the xtics manually... for example:

set xtics ("2" 2,"4" 4, "8" 8,"16" 16,"32" 32,"64" 64)
like image 126
Raphael Roth Avatar answered Oct 12 '22 00:10

Raphael Roth