Title: scatter(..., marker='') raises on drawing with mpl3.3.1 · Issue #18254 · matplotlib/matplotlib · GitHub
Open Graph Title: scatter(..., marker='') raises on drawing with mpl3.3.1 · Issue #18254 · matplotlib/matplotlib
X Title: scatter(..., marker='') raises on drawing with mpl3.3.1 · Issue #18254 · matplotlib/matplotlib
Description: Bug report Bug summary plt.scatter() raises upon drawing when called with marker='' (no errors with 3.3.0). This change of behavior broke seaborn. Code for reproduction import matplotlib.pyplot as plt plt.scatter([], [], marker='') # fai...
Open Graph Description: Bug report Bug summary plt.scatter() raises upon drawing when called with marker='' (no errors with 3.3.0). This change of behavior broke seaborn. Code for reproduction import matplotlib.pyplot as ...
X Description: Bug report Bug summary plt.scatter() raises upon drawing when called with marker='' (no errors with 3.3.0). This change of behavior broke seaborn. Code for reproduction import matplotlib.py...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/18254
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"scatter(..., marker='') raises on drawing with mpl3.3.1","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### Bug report\r\n\r\n**Bug summary**\r\n\r\n`plt.scatter()` raises upon drawing when called with `marker=''` (no errors with 3.3.0). \r\nThis change of behavior broke seaborn.\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\nplt.scatter([], [], marker='') # fails also with plt.scatter([1,2,3], [1,2,3], marker='')\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\nTraceback (most recent call last):\r\n File \"/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/backends/backend_macosx.py\", line 61, in _draw\r\n self.figure.draw(renderer)\r\n File \"/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/artist.py\", line 41, in draw_wrapper\r\n return draw(artist, renderer, *args, **kwargs)\r\n File \"/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/figure.py\", line 1863, in draw\r\n mimage._draw_list_compositing_images(\r\n File \"/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/image.py\", line 131, in _draw_list_compositing_images\r\n a.draw(renderer)\r\n File \"/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/artist.py\", line 41, in draw_wrapper\r\n return draw(artist, renderer, *args, **kwargs)\r\n File \"/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/cbook/deprecation.py\", line 411, in wrapper\r\n return func(*inner_args, **inner_kwargs)\r\n File \"/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/axes/_base.py\", line 2748, in draw\r\n mimage._draw_list_compositing_images(renderer, self, artists)\r\n File \"/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/image.py\", line 131, in _draw_list_compositing_images\r\n a.draw(renderer)\r\n File \"/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/artist.py\", line 41, in draw_wrapper\r\n return draw(artist, renderer, *args, **kwargs)\r\n File \"/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/collections.py\", line 931, in draw\r\n Collection.draw(self, renderer)\r\n File \"/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/artist.py\", line 41, in draw_wrapper\r\n return draw(artist, renderer, *args, **kwargs)\r\n File \"/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/collections.py\", line 385, in draw\r\n extents = paths[0].get_extents(combined_transform)\r\n File \"/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/path.py\", line 603, in get_extents\r\n return Bbox([xys.min(axis=0), xys.max(axis=0)])\r\n File \"/Users/maoz/miniconda/envs/seaborn_devenv/lib/python3.8/site-packages/numpy/core/_methods.py\", line 43, in _amin\r\n return umr_minimum(a, axis, None, out, keepdims, initial, where)\r\nValueError: zero-size array to reduction operation minimum which has no identity\r\n```\r\n\r\n**Expected outcome**\r\n\r\nNot to fail.\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: MacOS\r\n * Matplotlib version: 3.3.1\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): MacOSX (also reproduces with %inline)\r\n * Python version: 3.8.3\r\n * Jupyter version (if applicable):\r\n * Other libraries: numpy 1.19.1\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\nmatplotlib installed through pip\r\n","author":{"url":"https://github.com/MaozGelbart","@type":"Person","name":"MaozGelbart"},"datePublished":"2020-08-14T12:59:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/18254/matplotlib/issues/18254"}
| 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:d9724993-8483-cf0a-7fe7-b83a61cc44e8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DEE6:3D4A9E:5A113B:79A7A5:6A527E8E |
| html-safe-nonce | 0bcc0e7a53ba785007d10dbfe84e64798895ec6806cc777e8e5ed9e2f28b5bb8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERUU2OjNENEE5RTo1QTExM0I6NzlBN0E1OjZBNTI3RThFIiwidmlzaXRvcl9pZCI6IjU2Njc4NjU0MjExNjQzNzY0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 16c951d5ec99e60b4289c06443f2ed6eab3beff198380920acf2cbba59173147 |
| hovercard-subject-tag | issue:679140798 |
| 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/18254/issue_layout |
| twitter:image | https://opengraph.githubassets.com/89384297db7f06d2670b18be296858cd78fd494c730e0c1bae2986b08138be0a/matplotlib/matplotlib/issues/18254 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/89384297db7f06d2670b18be296858cd78fd494c730e0c1bae2986b08138be0a/matplotlib/matplotlib/issues/18254 |
| og:image:alt | Bug report Bug summary plt.scatter() raises upon drawing when called with marker='' (no errors with 3.3.0). This change of behavior broke seaborn. Code for reproduction import matplotlib.pyplot as ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MaozGelbart |
| 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