8000 Check parameters of ColorbarBase by timhoffm · Pull Request #14519 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
merged 1 commit into from
Aug 8, 2019

Conversation

timhoffm
Copy link
Member

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.

@timhoffm timhoffm force-pushed the colorbarbase-argcheck branch 2 times, most recently from a0a108a to 8785e88 Compare June 30, 2019 15:28

Parameters
----------
ax : `~matplotlib.axes.Axes`
Copy link
Contributor

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.

Copy link
Member Author
@timhoffm timhoffm Jul 22, 2019

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.

@timhoffm timhoffm force-pushed the colorbarbase-argcheck branch from 8785e88 to 7e33b81 Compare July 22, 2019 18:28
@timhoffm timhoffm force-pushed the colorbarbase-argcheck branch from 7e33b81 to 936905e Compare July 22, 2019 18:35
@timhoffm timhoffm modified the milestones: v3.1.2, v3.2.0 Aug 7, 2019
@dopplershift dopplershift merged commit 3253ba1 into matplotlib:master Aug 8, 2019
@timhoffm timhoffm deleted the colorbarbase-argcheck branch August 8, 2019 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0