Title: Singular keyword arguments in contour don't raise exceptions · Issue #1963 · matplotlib/matplotlib · GitHub
Open Graph Title: Singular keyword arguments in contour don't raise exceptions · Issue #1963 · matplotlib/matplotlib
X Title: Singular keyword arguments in contour don't raise exceptions · Issue #1963 · matplotlib/matplotlib
Description: I have confused myself several times (and have seen it happen many times with other people) by something like this not working, but also not raising a warning or exception: plt.contour(image, color='green', linestyle='dotted') The fact t...
Open Graph Description: I have confused myself several times (and have seen it happen many times with other people) by something like this not working, but also not raising a warning or exception: plt.contour(image, color...
X Description: I have confused myself several times (and have seen it happen many times with other people) by something like this not working, but also not raising a warning or exception: plt.contour(image, color...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/1963
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Singular keyword arguments in contour don't raise exceptions","articleBody":"I have confused myself several times (and have seen it happen _many_ times with other people) by something like this not working, but also not raising a warning or exception:\n\n```\nplt.contour(image, color='green', linestyle='dotted')\n```\n\nThe fact that the keywords are not plural in this case is quite pedantic, but the real issue is that there are not even any warnings or errors, so users are left having no idea why this doesn't work, and are left frustrated when they do find out.\n\nSo I would suggest either:\n- raise an exception for non-used keyword arguments (not ideal because it still makes it very pedantic)\n- emit a warning and fix the keyword to the plural version\n- simply accept the singular keywords and just pass them to the plural ones, raising an error if the plural one is defined too.\n","author":{"url":"https://github.com/astrofrog","@type":"Person","name":"astrofrog"},"datePublished":"2013-04-30T13:26:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/1963/matplotlib/issues/1963"}
| 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:806f9d14-fec1-7b14-64e6-01e685955f91 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B6E2:104265:B8DECC:FC279B:6A516359 |
| html-safe-nonce | 1a69ed6eb34a993b0cdcfbfcc6fdea5d829e09844832e001a09c89eeb692c7a0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkUyOjEwNDI2NTpCOERFQ0M6RkMyNzlCOjZBNTE2MzU5IiwidmlzaXRvcl9pZCI6IjE2ODU3ODk0Nzg4MDU5MjI2NDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3359e2e31ba08ab34e56a845c7bbd4274decb7ae9dffcd5c3f17e07f4f563fcf |
| hovercard-subject-tag | issue:13806205 |
| 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/1963/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d183048ac8b8b88d3af70286f4704d8912a45c017f55607b9a9b2c1fcf384670/matplotlib/matplotlib/issues/1963 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d183048ac8b8b88d3af70286f4704d8912a45c017f55607b9a9b2c1fcf384670/matplotlib/matplotlib/issues/1963 |
| og:image:alt | I have confused myself several times (and have seen it happen many times with other people) by something like this not working, but also not raising a warning or exception: plt.contour(image, color... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | astrofrog |
| 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 | 2eeb434949a926fad21064b4d395a54759f7a0b2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width