-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Check parameters of ColorbarBase #14519
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
a0a108a
to
8785e88
Compare
|
||
Parameters | ||
---------- | ||
ax : `~matplotlib.axes.Axes` |
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.
blank lines are not consistent.
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.
Usually, I would not add blank lines here, because the descriptions are short.
Only where no description is present at all, I've added a blank line (or rather an indented empty description 😉). I think that's a fair compromise. Otherwise the parameters would be visually merged to one block.
And you were right anyway, there was no blank line between norm and alpha. Fixed that.
Ideally, one would write descriptions for all, but that's not the focus of this PR.
8785e88
to
7e33b81
Compare
7e33b81
to
936905e
Compare
PR Summary
Add some type and value checks to the parameters of
ColorbarBase.__init__
. Also start a bit of documentation. Documentation is still incomplete. There are a number of parameters I don't fully understand myself, and figuring everything out was too much for the moment. Further improvements on the documentation are welcome 😄.This PR would have prevented #14517.