Title: The markers are not hollow when I use ax.scatter() and set markers.MarkerStyle()'s fillstyle to 'none'. My usage is wrong? · Issue #17527 · matplotlib/matplotlib · GitHub
Open Graph Title: The markers are not hollow when I use ax.scatter() and set markers.MarkerStyle()'s fillstyle to 'none'. My usage is wrong? · Issue #17527 · matplotlib/matplotlib
X Title: The markers are not hollow when I use ax.scatter() and set markers.MarkerStyle()'s fillstyle to 'none'. My usage is wrong? · Issue #17527 · matplotlib/matplotlib
Description: I want to set markers hollow. So I make a costomed markers.MarkerStyle and set the paramter fillstyle='none'. But I don't get what I want. Code for reproduction from matplotlib import pyplot as plt from matplotlib import markers import n...
Open Graph Description: I want to set markers hollow. So I make a costomed markers.MarkerStyle and set the paramter fillstyle='none'. But I don't get what I want. Code for reproduction from matplotlib import pyplot as plt...
X Description: I want to set markers hollow. So I make a costomed markers.MarkerStyle and set the paramter fillstyle='none'. But I don't get what I want. Code for reproduction from matplotlib import p...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/17527
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The markers are not hollow when I use ax.scatter() and set markers.MarkerStyle()'s fillstyle to 'none'. My usage is wrong?","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n\u003c!--A short 1-2 sentences that succinctly describes the bug--\u003e\r\n\r\nI want to set markers hollow. So I make a costomed `markers.MarkerStyle` and set the paramter `fillstyle='none'`. But I don't get what I want.\r\n\r\n**Code for reproduction**\r\n\r\n\u003c!--A minimum code snippet required to reproduce the bug.\r\nPlease make sure to minimize the number of dependencies required, and provide\r\nany necessary plotted data.\r\nAvoid using threads, as Matplotlib is (explicitly) not thread-safe.--\u003e\r\n\r\n```python\r\nfrom matplotlib import pyplot as plt\r\nfrom matplotlib import markers\r\nimport numpy as np\r\nxy = np.random.rand(10, 2)\r\nfig, ax = plt.subplots()\r\nstyle = markers.MarkerStyle(marker='o', fillstyle='none')\r\nax.scatter(xy[:, 0], xy[:, 1], marker=style)\r\nplt.show()\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\u003c!--The output produced by the above code, which may be a screenshot, console output, etc.--\u003e\r\n\r\n\r\n\r\n**Expected outcome**\r\nThis is what I want.\r\n\r\n\r\nWhen I check out the source code about the [matplotlib.markers.MarkerStyle](https://matplotlib.org/3.2.1/_modules/matplotlib/markers.html#MarkerStyle), I find:\r\n\r\nIt seems that it doesn't process `fillstyle='none'`.\r\nI don't know why. Maybe my usage is wrong. Could anyone help me?\r\n\u003c!--A description of the expected outcome from the code snippet--\u003e\r\n\u003c!--If this used to work in an earlier version of Matplotlib, please note the version it used to work on--\u003e\r\n\r\n\r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating system: Win10\r\n * Matplotlib version: 3.1.1\r\n * Python version: 3.6.6\r\n\r\n\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\n\u003c!--If you installed from conda, please specify which channel you used if not the default--\u003e\r\n\r\n","author":{"url":"https://github.com/NoahFeng","@type":"Person","name":"NoahFeng"},"datePublished":"2020-05-28T10:36:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/17527/matplotlib/issues/17527"}
| 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:3e90a54d-2832-533b-f325-b29a6814c63e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D80A:32DC0C:C69FD2:10C9CE0:6A5169DF |
| html-safe-nonce | 9307c9293c962903e16e20e84ae2bd9da081124b7efdc8e62d62e962be97d881 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODBBOjMyREMwQzpDNjlGRDI6MTBDOUNFMDo2QTUxNjlERiIsInZpc2l0b3JfaWQiOiIzNzE0OTg1MTk2MjgzNTg3MDM5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 602be6bbcfe40d1db6cb796359f03c3218b6a24be011bb663961c2bc6ac378e8 |
| hovercard-subject-tag | issue:626403347 |
| 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/17527/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3138c383814a0ba15aed6429e25b61a53804da0453ca1164ba6b5608ab4e85d3/matplotlib/matplotlib/issues/17527 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3138c383814a0ba15aed6429e25b61a53804da0453ca1164ba6b5608ab4e85d3/matplotlib/matplotlib/issues/17527 |
| og:image:alt | I want to set markers hollow. So I make a costomed markers.MarkerStyle and set the paramter fillstyle='none'. But I don't get what I want. Code for reproduction from matplotlib import pyplot as plt... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | NoahFeng |
| 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 | 60eaaf6d4dbaa817031b556aebd8a0a7eeb81b97 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width