In recent versions of Gnuplot, the dumb terminal refuses to print the y-axis label, despite apparently making enough room for it.
Example:
gnuplot> set terminal dumb 80 35
Terminal type is now 'dumb'
Options are 'feed size 80, 35 aspect 2, 1 mono'
gnuplot> set title 'Test title'
gnuplot> set xlabel 'Test xlabel'
gnuplot> set ylabel 'test ylabel'
gnuplot> plot '-' using 1:2 title '' with lines
input data ('e' ends) > 1 200
input data ('e' ends) > 2 400
input data ('e' ends) > 3 300
input data ('e' ends) > 4 600
input data ('e' ends) > e
Test title
600 +----------------------------------------------------------+
| + + + + + *|
| * |
550 |-+ *+-|
| * |
| * |
| * |
500 |-+ * +-|
| * |
| * |
450 |-+ * +-|
| * |
| * |
| * |
400 |-+ ***** * +-|
| ** ** * |
| * *** * |
350 |-+ ** *** * +-|
| * ** * |
| * *** * |
| ** * * |
300 |-+ * * +-|
| ** |
| * |
250 |-+ ** +-|
| * |
| * |
|** + + + + + |
200 +----------------------------------------------------------+
1 1.5 2 2.5 3 3.5 4
Test xlabel
No y-axis label, and yet
gnuplot> show ylabel
ylabel is "test ylabel", offset at (character 0, 0, 0), rotated by -270 degrees in 2D plots textcolor lt -1
Interestingly, it seems that the space to the left of the y-axis is made to measure to the length of the y-axis label, it's just that the label itself never gets printed:
In recent versions of Gnuplot, the dumb terminal refuses to print the y-axis label, despite apparently making enough room for it.
Example:
No y-axis label, and yet
Interestingly, it seems that the space to the left of the y-axis is made to measure to the length of the y-axis label, it's just that the label itself never gets printed:
Let's break it down, what happens with one character?
Aha, we have a label but it looks as though the spacing is dodgy. Let's try setting an offset.
Much better. Does this always work?
Clearly not. Let's try a bigger offset.
OK, so it's clear that we need a horizontal offset equal to
len(xlabel) // 2
.