-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
ENH: add pad kwarg to set_title #9816
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
Conversation
Can you add a whats_new for this? |
# check that title padding puts the title in the right | ||
# place... | ||
fig, ax = plt.subplots() | ||
ax.set_title('aardvark', pad=30.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 for use of 'aardvark'!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wish I could claim credit, but I just cut and pasted from elsewhere. I hope its a good inside joke...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well at least it is likely to be the first word in English-dictionaries, isn't it ^^? It may actually be(come) a running gag in Matploltib code too: I used it as well in some tests with strings, copy-pasting it from some other existing code section as @jklymak did... (I did not even understand it was a proper word at that time 🐑 )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
modulo a whats_new entry.
79937d2
to
d6fc866
Compare
PR Summary
This adds a pad kwarg to
axes.set_title()
.I was writing some docs on
set_title()
and was surprised the only way to change the pad was viarcParams
. This sets the default to bercParams
, but accepts a float to specify the number of points.PR Checklist