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

Tick label rotation via set_tick_params #6829

Merged

Conversation

bcongdon
Copy link
Contributor

Addresses #6795.

Implemented @tacaswell's suggestion so that commands such as ax.xaxis.set_tick_params(which='both', rotation=90) are now possible.

Added related test and whats_new entry.

@@ -73,6 +73,7 @@ def __init__(self, axes, loc, label,
pad=None,
labelsize=None,
labelcolor=None,
labelrotation=0,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please put last so to preserve API

@tacaswell tacaswell added this to the 2.1 (next point release) milestone Jul 25, 2016
@tacaswell
Copy link
Member

Can you add a test? I don't think this needs an image test, just verify that the rotation value ends up correctly on the tick labels.

@bcongdon bcongdon force-pushed the feature_improved_tick_label_rotation branch from 5191ca8 to a755218 Compare July 25, 2016 21:31
@bcongdon
Copy link
Contributor Author

I added this test to do assertion of label rotation. Is that sufficient?

@tacaswell
Copy link
Member

👍 Looks great. Just waiting on CI.

@tacaswell
Copy link
Member

Sorry, one last thing, can you also update the docstrings in set_params in axes/_base.py ?

@bcongdon
Copy link
Contributor Author

Yup, done.

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.

None yet

3 participants