Title: pylab.plot markers aren't independent from lines (pylab: 1.9.2) · Issue #4338 · matplotlib/matplotlib · GitHub
Open Graph Title: pylab.plot markers aren't independent from lines (pylab: 1.9.2) · Issue #4338 · matplotlib/matplotlib
X Title: pylab.plot markers aren't independent from lines (pylab: 1.9.2) · Issue #4338 · matplotlib/matplotlib
Description: pylab.plot is supposed to draw lines and/or markers but it turns out markers aren't independent from lines. Here is an example: import matplotlib.pylab as plt marker_size=10 plt.figure() plt.subplot(221) plt.plot( range(10), linestyle='-...
Open Graph Description: pylab.plot is supposed to draw lines and/or markers but it turns out markers aren't independent from lines. Here is an example: import matplotlib.pylab as plt marker_size=10 plt.figure() plt.subplo...
X Description: pylab.plot is supposed to draw lines and/or markers but it turns out markers aren't independent from lines. Here is an example: import matplotlib.pylab as plt marker_size=10 plt.figure() plt.su...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/4338
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pylab.plot markers aren't independent from lines (pylab: 1.9.2)","articleBody":"`pylab.plot` is supposed to draw lines and/or markers but it turns out markers aren't independent from lines. Here is an example:\n\n``` python\nimport matplotlib.pylab as plt\nmarker_size=10\nplt.figure()\nplt.subplot(221)\nplt.plot(\n range(10),\n linestyle='--',\n )\n# drawing a line looks fine\nplt.subplot(222)\nplt.plot(\n range(10),\n marker='o',\n markersize=marker_size,\n markeredgewidth=2,\n markeredgecolor='r',\n )\n# drawing markers is a bit problematic. There is always a line associated with markers.\nplt.subplot(223)\nplt.plot(\n range(10),\n linestyle=' ',\n marker='o',\n markersize=marker_size,\n markeredgewidth=2,\n markeredgecolor='r',\n )\n# In order to ONLY draw markers, 'linestyle' should be set an empty string.\nplt.subplot(224)\nplt.plot(\n range(10),\n linestyle='--',\n linewidth=3,\n marker='o',\n markeredgewidth=2,\n markeredgecolor='r',\n markersize=marker_size,\n )\n# It's even more strange that when you do want makers with a line, 'linestyle' also affects marker\n# edges. In this example, line is set dashed. Then the marker's edges get dashed too!\nplt.draw()\nplt.show()\n```\n\nThere are of-course ways to get around these problems, but wondering maybe this is a bug unexpected by maintainers.\n","author":{"url":"https://github.com/enfeizhan","@type":"Person","name":"enfeizhan"},"datePublished":"2015-04-15T06:49:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":20},"url":"https://github.com/4338/matplotlib/issues/4338"}
| 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:f8ba706a-10f6-26bd-472e-156d681ea73e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ECEA:1BA1D0:47A835:5E5DDE:6A52FDE0 |
| html-safe-nonce | 22946464b04663121ac0b20ba969e40b1477313e997e4649a90c7c8c1a6689c6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0VBOjFCQTFEMDo0N0E4MzU6NUU1RERFOjZBNTJGREUwIiwidmlzaXRvcl9pZCI6IjgzMDgxMjI3MTEyNDg1MzUwMDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9fcfa97e8d32e620dbf49f24fe940c06d5d13bec9e75d968c5c83e65c1dbb19a |
| hovercard-subject-tag | issue:68593583 |
| 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/4338/issue_layout |
| twitter:image | https://opengraph.githubassets.com/248e9f3de824d8caffdb357246195fef8b6bb66d8073b932416d80271549dcb0/matplotlib/matplotlib/issues/4338 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/248e9f3de824d8caffdb357246195fef8b6bb66d8073b932416d80271549dcb0/matplotlib/matplotlib/issues/4338 |
| og:image:alt | pylab.plot is supposed to draw lines and/or markers but it turns out markers aren't independent from lines. Here is an example: import matplotlib.pylab as plt marker_size=10 plt.figure() plt.subplo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | enfeizhan |
| 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