-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[ENH]: Add Independent xlabelpad and ylabelpad Options to rcParams #28860
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
While fundamentally reasonable, this is a bit more complicated because we need to keep backward compatibility with We do have |
Hi @timhoffm, I’d love to give this a try while ensuring backward compatibility by implementing clear precedence rules. |
@Kaustbh this should best build on top of the precedence mechanism added to Unfortunately, we currently have a significant review backlog, which is why that PR is not yet in and the mechanism cannot be used. But you could start from that branch and rebase when that PR gets merged. |
Okay I will start working on it. |
Problem
Currently, we can only set a uniform
axes.labelpad
, which applies the same padding for both the x-axis and y-axis labels.I am aware that it is possible to adjust the labelpad for the x and y labels independently using
set_xlabel(..., labelpad=x_pad)
andset_ylabel(..., labelpad=y_pad)
in plotting code. However, would it be better to add separate options in rcParams to set the padding for x and y labels independently, similar to howxtick.major.pad
andytick.major.pad
work?Proposed solution
No response
The text was updated successfully, but these errors were encountered: