-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Inconsistensy in pyplot.pcolormesh
docstring regarding default value for shading
#21314
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
Comments
pyplot.pcolormesh
default value for shading
pyplot.pcolormesh
docstring regarding default value for shading
Looking at the default values in |
I don't think |
@dstansby, are you suggesting that the docstring should be simply The fill style for the quadrilateral; defaults to :rc:`pcolor.shading`. ? |
I think so, though I am not 100% sure that I agree with this admonition because for non-rendered docs this doesn't help the user much. I somewhat prefer
but of course manually typing it makes it susceptible to being forgotten next time behaviour changes. |
Because of this syncing issue, we do not do this. Also as of now, this would render to HTML as
which would be really confusing. If somebody wants explicitly written defaults in the source, they need to adapt the |
The function argument list here declares
None
as the default value forshading
matplotlib/lib/matplotlib/axes/_axes.py
Lines 5838 to 5839 in 30b3bd5
but that does not seem to be in agreement with
shading = 'flat'
which is mentioned bit further down, namely atmatplotlib/lib/matplotlib/axes/_axes.py
Lines 5920 to 5922 in 30b3bd5
(discovered by @hakaseh)
The text was updated successfully, but these errors were encountered: