plots
plots copied to clipboard
Feature to easily rotate y-axis label.
Right now, it looks like we need to do something like (basically from https://github.com/cchalmers/plots/issues/25):
yAxis . axisLabelTextFunction %= \f _ s -> f (BoxAlignedText 0.5 0.5) s # rotateBy (1/4)
yAxis . axisLabelGap *= 3
Instead, it would be nice if we could have a system similar to AxisLabelPosition or a simpler way to use rotateBy without needing to manually set the axisLabelGap nor the BoxAlignedText.
I could add mkVerticalText :: TextAlignment -> String -> Diagram V2. Then it would be a case of
yAxis . axisLabelTextFunction .= mkVerticalText
It seems that rotating tick labels on the x and y-axis are the same so could also benefit from this issue as well.