How to rotate or reposition axis labels in lilaq?

A follow-up question from @Bryn:

Your solution works. I like the fact you are using em instead of cm.

I wanted to reply but could not find a clean solution allowing for the height and width of the diagram and combining label.pad: none.

Something in the lines of:

// This does not work - hypothetical solution
xlabel: lq.xlabel(pad: none, dx: diagram.width + offset)[$x$],
ylabel: lq.ylabel(pad: none, dy: diagram.height + offset, angle: 0deg)[$y$],

And also have a way to center the label with something like align: center like the tick labels.

Perhaps @Mc-Zen has something more elegant?

1 Like