Re: XTick Labels?

Norwid Behrnd via gnuplot-info <[email protected]> Sun, 8 Feb 2026 11:38:29 +0100
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <20260208113804.52fa52eb@debian>
Dear Robert

The example shared by you includes three consecutive lines relevant to the
management of xtics:

> set xtics border in scale 0,0 nomirror rotate by -45  autojustify
> set xtics  norangelimit 
> set xtics   ()

By `set xtics scale 0,0` you however set them invisible.  Compare for example
the result of 

```
set terminal png
set output "test_01.png"
set title "test 01"

set xtics in scale 0,0
plot sin(x)
```

with (an exaggerated example)

```
set terminal png
set output "test_02.png"
set title "test 02"

set xtics in scale 10,0
plot sin(x)
```

Equally, compare with the first example "US immigration from Europe by decade"
on <https://gnuplot.sourceforge.net/demo_5.4/histograms2.html> -- sometimes the
tics extend beyond the bars (e.g., 1931--1940, Northern Europe) to be visible,
while e.g., about 1901--1910 they are not.  Here, `set xtics out` yields xtics
which don't enter the first quadrant and hence are not affected by the
histogram's bars.

In your example, the annotations to the abscissa are short; this is the reason
why I think to use `set xtics out` without a `rotate by -45` provides a result
easier to read and 

```
set xtics out border nomirror autojustify
set xtics  norangelimit 
```

might suffice.  Note `set xtics ()` can void your earlier list of instructions
about the xtics.

Best regards,

Norwid


_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info