I've been going crazy looking for an answer to this question. How can I set the distance between the tics on gnuplot? Currently the tics in my plot are squished together too tightly. I want them to be more spread out.
Here is an example:
I have a graph that looks like this:
100 ——
|
|
50 ——
|
|
0 ——
I want it to look like this:
50 ——
|
|
|
|
|
0 ——
Notice that there is actually one less tic in the after sample.
The distance between tics is set by set xtics
or set ytics
command. For example if I use the command plot sin(x)
then the space between the xtics
is 5 by default. The command
set xtics -10,2,10
replot
makes the xtics
appear at an interval of 2. In the above command the format is
set xtics <start>, <increment>, <end>
See help xtics
inside gnuplot
for details.
Hope this helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With