Skip to content

Feature: allow user control over axis title angle#363

Merged
jvkersch merged 3 commits into
masterfrom
feature/customize_axis_title_angle
Jul 11, 2017
Merged

Feature: allow user control over axis title angle#363
jvkersch merged 3 commits into
masterfrom
feature/customize_axis_title_angle

Conversation

@jonathanrocher
Copy link
Copy Markdown
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
Copy Markdown
Collaborator Author

CI failures unrelated.

@jvkersch
Copy link
Copy Markdown
Contributor

jvkersch commented Jul 5, 2017

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

@jvkersch
Copy link
Copy Markdown
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
Copy Markdown
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