It's maybe not a bug, more a missing feature, but I don't understand why I don't easily get xticlabels on a boxplot. Maybe it's just a lack of understanding how it is intended to work. I know, you could workaround with an extra dummy plot command to get the xticlabels right.
Why do I get xticlabels using with boxes, but not when using with boxplot?
Example:
reset session
$Data <<EOD
One Two Three
3 6 2
4 1 3
6 9 1
1 7 4
2 8 5
5 4 4
EOD
set boxwidth 0.8 absolute
set key noautotitle
set multiplot layout 1,2
plot for [col=1:3]$Data u (col):col:xtic(columnheader(col)) w boxes
plot for [col=1:3]$Data u (col):col:xtic(columnheader(col)) w boxplot
unset multiplot
Diff:
The documentation section for
with boxplotis definitely lacking in essential detail. It is already on the list of things that need attention. The short answer is that it wants the label, if any, for the boxplot to be provided in the fourth column.In general the primary feature of a boxplot is to show the distribution of values along y. The numerical value of the x coordinate is not usually relevant, so you don't normally want xtics at all. Instead you normally want some label underneath that acts like the key title would.
Thanks, this clarifies it. Apparently, this was my lack of understanding how it works. So, the idea for boxplot is not necessarily to have data in different columns, but in one and another one for indicating the respective box. Data can even be in random order, sorted by first occurrence. I was also positively surprised that
lc varworks as well.