-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
add label alignment to tick_params #20644
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
Comments
Not sure if that's too much magic, but IMHO tick labels should always "point" to their tick. That would require different alignment depending on the rotation angle. It could be an option not to expose explicit alignment but automatically choose it depending on the angle. (You could still use |
I totally agree w/ you on an automagical angle alignment as that's probably a common use case. |
Labeling good first issue because it seems to have support from at least two devs and is somewhat independent, but medium difficulty because it's kind of involved:
(ETA: probably in 3,2,1 order) + tests for all the new kwargs (which I think means image tests?) |
I think it can check |
I've heard the Can anyone enlighten me what the reason is that we don't provide a mechanism to pass all keyword arguments to the ticks and labels through the various |
This ist mostly "just not implemented". However I except that there can be some corner cases (e.g. the alignment discussion above), where we might want to deviate from simply passing through. |
While not a replacement, the new rotation modes in #28968 remove the need for explicit alignment control for one of the current most common use cases: fix tick alignment after rotation. |
Hi @timhoffm ! I'm Evelyn, and am interested in helping resolve this issue. Can me and my team work on this? |
Hi @evelyn-lo thanks for your interest. I'm still unclear whether we should support the alignment. If so, it would have the effect as described here, which should explicitly be mentioned as it may not be the obvious behavior. |
tick_params supports a subset of labeling parameters:
Motivated by wanting to swap out
plt.setp
and usetick_params
, and finding the tick_params list kind of arbitrary, I think if labels can be modified via tick_params than a larger set of label parameters should be supported. This would mean adding:labelrotation_modedone in Implement xtick and ytick rotation modes #28968The text was updated successfully, but these errors were encountered: