Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature to easily rotate y-axis label. #33

Open
GregorySchwartz opened this issue Jul 21, 2017 · 2 comments
Open

Feature to easily rotate y-axis label. #33

GregorySchwartz opened this issue Jul 21, 2017 · 2 comments

Comments

@GregorySchwartz
Copy link

Right now, it looks like we need to do something like (basically from #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.

@cchalmers
Copy link
Owner

I could add mkVerticalText :: TextAlignment -> String -> Diagram V2. Then it would be a case of

yAxis . axisLabelTextFunction .= mkVerticalText

@GregorySchwartz
Copy link
Author

It seems that rotating tick labels on the x and y-axis are the same so could also benefit from this issue as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants