-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Validate text rotation in setter #19228
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -303,7 +303,7 @@ def test_add_subplot_invalid(): | |
def test_suptitle(): | ||
fig, _ = plt.subplots() | ||
fig.suptitle('hello', color='r') | ||
fig.suptitle('title', color='g', rotation='30') | ||
fig.suptitle('title', color='g', rotation=30) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess strictly speaking this is backcompat breaking? I doubt it's worth a deprecation period, but it should be noted. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not even sure we need to mention it. '30' is not a supported format according to docs. It just happens to work. If we drop that without deprecation period, a note does not really help anybody. Nobody goes through the note and says "hey rotation does not take string numbers anymore. That's my thing, I'm doing that all the time". I'll bet anything if anybody passes '30', they will only notice by the error message they will get. |
||
|
||
|
||
def test_suptitle_fontproperties(): | ||
|