Title: Unexpected behavior for Axes3D.plot_surface(shade=None) · Issue #11154 · matplotlib/matplotlib · GitHub
Open Graph Title: Unexpected behavior for Axes3D.plot_surface(shade=None) · Issue #11154 · matplotlib/matplotlib
X Title: Unexpected behavior for Axes3D.plot_surface(shade=None) · Issue #11154 · matplotlib/matplotlib
Description: According to the docs the kwarg shade has to be a bool. The current implementation also accepts None and translates it to False. Relevant code segment. shade = kwargs.pop('shade', cmap is None) if shade: I assume that the current behavio...
Open Graph Description: According to the docs the kwarg shade has to be a bool. The current implementation also accepts None and translates it to False. Relevant code segment. shade = kwargs.pop('shade', cmap is None) if ...
X Description: According to the docs the kwarg shade has to be a bool. The current implementation also accepts None and translates it to False. Relevant code segment. shade = kwargs.pop('shade', cmap is N...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/11154
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unexpected behavior for Axes3D.plot_surface(shade=None)","articleBody":"According to the docs the kwarg *shade* has to be a bool. The current implementation also accepts `None` and translates it to `False`.\r\n\r\nRelevant code segment.\r\n~~~\r\nshade = kwargs.pop('shade', cmap is None)\r\nif shade:\r\n~~~\r\n\r\nI assume that the current behavior is an unintended implementation detail, and I propose to change the semantics of shade=None to \"use default\" in order to allow further code simplification using default kwargs (#11145).","author":{"url":"https://github.com/timhoffm","@type":"Person","name":"timhoffm"},"datePublished":"2018-05-02T00:35:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/11154/matplotlib/issues/11154"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1a157680-58ca-80df-56be-b048da6f4d52 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8CD2:185C34:1B99280:25B8CCB:6A537392 |
| html-safe-nonce | 203c09a95a46c9c61acccfda9ce1cf8e92ecdc9f62a39e9c152040999abbec73 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0QyOjE4NUMzNDoxQjk5MjgwOjI1QjhDQ0I6NkE1MzczOTIiLCJ2aXNpdG9yX2lkIjoiNDU5MDM4MDEzNDg1OTc2NDYyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fbfe557601baece7bb362db0d404daee4d7ee5e4e08e3fd687ca9e1594c1e67c |
| hovercard-subject-tag | issue:319373436 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/11154/issue_layout |
| twitter:image | https://opengraph.githubassets.com/918ae228948cf8304bb11027b0dac262a72f5c4db4df8c4d110ff6ff0675a064/matplotlib/matplotlib/issues/11154 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/918ae228948cf8304bb11027b0dac262a72f5c4db4df8c4d110ff6ff0675a064/matplotlib/matplotlib/issues/11154 |
| og:image:alt | According to the docs the kwarg shade has to be a bool. The current implementation also accepts None and translates it to False. Relevant code segment. shade = kwargs.pop('shade', cmap is None) if ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | timhoffm |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width