I would like to set up my pgfplots to comply with the German Standard "DIN 461". To make it short: We are asked to place the unit of the axis between the last and the second last tick label or replace the second last tick label in case there is not enough space.
What I have learned so far is, that I could make a reference to the last tick label by setting an alias for each tick label (Placement of the scale tick label in pgfplots). What seems not to be achievable easily is to get the position of the second last tick label.
Alternativley I would like to get the actual tick distance, which would make it possible to recalculate the second last tick label position based on the position of the last one. Of course I could set the tick distance manually and therefore know the distance, but I would like to keep it as flexible as possible (e.g. to make it scalable with less effort, especially if I use max space between ticks and min space between ticks).
So to summarise my questions:
- Is there a possibility to get the position of the second last tick label directly
- Is there an alternative possibilty to get the auto generated tick distance
Many thanks in advance for your help!
