Be more correct when validating bbox rc params#4647
Be more correct when validating bbox rc params#4647jenshnielsen merged 3 commits intomatplotlib:masterfrom
Conversation
lib/matplotlib/rcsetup.py
Outdated
There was a problem hiding this comment.
Can you explain why this is needed?
There was a problem hiding this comment.
Because the object from an rcfile can't be a None object, only the string. There is only one situation that I can find where it is valid to say None in the rc file and mean the object and one situation where it is valid to say None/none in the rc file and mean the string or possibly the object (the default interpolation mode). This takes care of the former situation. We probably should double-check how we are handling the latter.
There was a problem hiding this comment.
Thanks, I would suggest adding a comment explaining that
|
Just pushed up comments and docstring tweaks. By the way, validation of |
|
@WeatherGod Thanks, can you open an issue on the interpolation issue? |
Be more correct when validating bbox rc params
right now, validate_bbox would let non strings validate as correct when that isn't the case. Also use the 'standard' name instead of None for the parameter.