Title: Double specifications of plot attributes · Issue #19275 · matplotlib/matplotlib · GitHub
Open Graph Title: Double specifications of plot attributes · Issue #19275 · matplotlib/matplotlib
X Title: Double specifications of plot attributes · Issue #19275 · matplotlib/matplotlib
Description: Describe the issue As a part of a research project, me and two co-authors have been mining GitHub for Jupyter notebooks and studied a number of frequent function calls in the notebooks. It appears that color is specified both using fmt a...
Open Graph Description: Describe the issue As a part of a research project, me and two co-authors have been mining GitHub for Jupyter notebooks and studied a number of frequent function calls in the notebooks. It appears ...
X Description: Describe the issue As a part of a research project, me and two co-authors have been mining GitHub for Jupyter notebooks and studied a number of frequent function calls in the notebooks. It appears ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/19275
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Double specifications of plot attributes","articleBody":"### Describe the issue\r\nAs a part of a research project, me and two co-authors have been mining GitHub for Jupyter notebooks and studied a number of frequent function calls in the notebooks. It appears that color is specified both using `fmt` and `color` in 125 different calls to `matplotlib.pyplot.plot`. Out of these, 120 calls specify different colors using the two different parameters. In worst case, this could lead to users studying the wrong curve in their plots, drawing incorrect conclusions. I think it would be good if the user got an indication that the value is specified twice. A similar indication when both `fmt` and `marker`/`linestyle` are used to specify marker/line style could also be helpful!\r\n\r\n**Summary**\r\nUsers may specify attributes using both `fmt`and `color`/`linestyle`/`marker`, without getting to know about it.\r\n\r\n### Proposed fix\r\nIssue an error or a warning when the color/line style/marker is specified using both `fmt`and `color`/`linestyle`/`marker`.","author":{"url":"https://github.com/malinkallen","@type":"Person","name":"malinkallen"},"datePublished":"2021-01-11T11:59:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/19275/matplotlib/issues/19275"}
| 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:239db60a-a2f6-88de-85c3-291122fc12f1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C8E8:9BDE:4FD3D0B:6F4A843:6A50F849 |
| html-safe-nonce | bfab0b0cfc2e0e7464fbf13900a1b465a4184241196fc84cd7c766acbe8ef25e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEU4OjlCREU6NEZEM0QwQjo2RjRBODQzOjZBNTBGODQ5IiwidmlzaXRvcl9pZCI6IjY1MDU1MTgxMzgxODM5NzI5MzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bb5f10c6fb008696d284d089d6bd695be286bdf55fd167cfd3ee41740e58504a |
| hovercard-subject-tag | issue:783311623 |
| 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/19275/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e30e774668a6a56823a01b738ac90a96818e848b1cdc03c5abb95c31545dc23d/matplotlib/matplotlib/issues/19275 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e30e774668a6a56823a01b738ac90a96818e848b1cdc03c5abb95c31545dc23d/matplotlib/matplotlib/issues/19275 |
| og:image:alt | Describe the issue As a part of a research project, me and two co-authors have been mining GitHub for Jupyter notebooks and studied a number of frequent function calls in the notebooks. It appears ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | malinkallen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5266e58c17a510c403505cc811606465e90a881d2007ee7df1c4800d5c659838 |
| 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 | 8d836581d020676cc0ef4a83cd2fe17e4af02c3d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width