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: allow user control over axis title angle #363

Merged
merged 3 commits into from
Jul 11, 2017

Conversation

jonathanrocher
Copy link
Collaborator

@jonathanrocher jonathanrocher commented Jul 5, 2017

With the current code, the axis' title label has an angle fully determined by the orientation of the Axis. left-> 90, right -> 270, top/bottom -> 0.

This PR:

  • makes the existing title_angle attribute a Float Trait, and moves its derivation based on orientation to a _title_angle_default method, so that users can control it.
  • tweaks a simple example to illustrate the new capability
  • updates the docs to list the new trait.

@jonathanrocher
Copy link
Collaborator Author

CI failures unrelated.

@jvkersch
Copy link
Contributor

jvkersch commented Jul 5, 2017

@jonathanrocher I will look at this and your other PR asap.

@jvkersch
Copy link
Contributor

LGTM, code looks good and I played around with the example.

(I merged master in this to make sure tests pass).

@jvkersch jvkersch merged commit 7e48209 into master Jul 11, 2017
@jvkersch jvkersch deleted the feature/customize_axis_title_angle branch July 11, 2017 14:31
@jonathanrocher
Copy link
Collaborator Author

Thanks for the review @jvkersch !

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

Successfully merging this pull request may close these issues.

2 participants