Title: Marker kwarg in grid raise exception · Issue #25910 · matplotlib/matplotlib · GitHub
Open Graph Title: Marker kwarg in grid raise exception · Issue #25910 · matplotlib/matplotlib
X Title: Marker kwarg in grid raise exception · Issue #25910 · matplotlib/matplotlib
Description: Description Using marker kwarg in grid raise a exception Version used python 3.11.2, really I found this bug same time ago using 3.9 or so matplotlib 3.6.3 Although the error names Tkinter, the error is also reproduced with qt backend Co...
Open Graph Description: Description Using marker kwarg in grid raise a exception Version used python 3.11.2, really I found this bug same time ago using 3.9 or so matplotlib 3.6.3 Although the error names Tkinter, the err...
X Description: Description Using marker kwarg in grid raise a exception Version used python 3.11.2, really I found this bug same time ago using 3.9 or so matplotlib 3.6.3 Although the error names Tkinter, the err...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/25910
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Marker kwarg in grid raise exception","articleBody":"**Description**\r\n\r\nUsing marker kwarg in grid raise a exception\r\n\r\n**Version used**\r\n\r\npython 3.11.2, really I found this bug same time ago using 3.9 or so\r\nmatplotlib 3.6.3\r\nAlthough the error names Tkinter, the error is also reproduced with qt backend\r\n\r\n**Code to reproduce**\r\n\r\n```\r\nfrom matplotlib import pyplot\r\n\r\nx = [0, 1]\r\ny = [0, 1]\r\npyplot.plot(x, y)\r\npyplot.grid(True, marker=\"o\")\r\npyplot.show()\r\n```\r\nAnd the exception raised...\r\n\r\n```\r\njjgomera@msi:~/Programacion/pychemqt$ python3 bug.py \r\nException in Tkinter callback\r\nTraceback (most recent call last):\r\n File \"/usr/lib/python3.11/tkinter/__init__.py\", line 1948, in __call__\r\n return self.func(*args)\r\n ^^^^^^^^^^^^^^^^\r\n File \"/usr/lib/python3.11/tkinter/__init__.py\", line 861, in callit\r\n func(*args)\r\n File \"/usr/lib/python3/dist-packages/matplotlib/backends/_backend_tk.py\", line 251, in idle_draw\r\n self.draw()\r\n File \"/usr/lib/python3/dist-packages/matplotlib/backends/backend_tkagg.py\", line 10, in draw\r\n super().draw()\r\n File \"/usr/lib/python3/dist-packages/matplotlib/backends/backend_agg.py\", line 405, in draw\r\n self.figure.draw(self.renderer)\r\n File \"/usr/lib/python3/dist-packages/matplotlib/artist.py\", line 74, in draw_wrapper\r\n result = draw(artist, renderer, *args, **kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/usr/lib/python3/dist-packages/matplotlib/artist.py\", line 51, in draw_wrapper\r\n return draw(artist, renderer)\r\n ^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/usr/lib/python3/dist-packages/matplotlib/figure.py\", line 3082, in draw\r\n mimage._draw_list_compositing_images(\r\n File \"/usr/lib/python3/dist-packages/matplotlib/image.py\", line 131, in _draw_list_compositing_images\r\n a.draw(renderer)\r\n File \"/usr/lib/python3/dist-packages/matplotlib/artist.py\", line 51, in draw_wrapper\r\n return draw(artist, renderer)\r\n ^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/usr/lib/python3/dist-packages/matplotlib/axes/_base.py\", line 3100, in draw\r\n mimage._draw_list_compositing_images(\r\n File \"/usr/lib/python3/dist-packages/matplotlib/image.py\", line 131, in _draw_list_compositing_images\r\n a.draw(renderer)\r\n File \"/usr/lib/python3/dist-packages/matplotlib/artist.py\", line 51, in draw_wrapper\r\n return draw(artist, renderer)\r\n ^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/usr/lib/python3/dist-packages/matplotlib/axis.py\", line 1304, in draw\r\n ticks_to_draw = self._update_ticks()\r\n ^^^^^^^^^^^^^^^^^^^^\r\n File \"/usr/lib/python3/dist-packages/matplotlib/axis.py\", line 1192, in _update_ticks\r\n major_ticks = self.get_major_ticks(len(major_locs))\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/usr/lib/python3/dist-packages/matplotlib/axis.py\", line 1534, in get_major_ticks\r\n tick = self._get_tick(major=True)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/usr/lib/python3/dist-packages/matplotlib/axis.py\", line 1483, in _get_tick\r\n return self._tick_class(self.axes, 0, major=major, **tick_kw)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/usr/lib/python3/dist-packages/matplotlib/axis.py\", line 422, in __init__\r\n super().__init__(*args, **kwargs)\r\n File \"/usr/lib/python3/dist-packages/matplotlib/axis.py\", line 166, in __init__\r\n self.gridline = mlines.Line2D(\r\n ^^^^^^^^^^^^^^\r\nTypeError: matplotlib.lines.Line2D() got multiple values for keyword argument 'marker'\r\n\r\n\r\n```","author":{"url":"https://github.com/jjgomera","@type":"Person","name":"jjgomera"},"datePublished":"2023-05-18T18:10:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/25910/matplotlib/issues/25910"}
| 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:38f6854c-23e3-7be8-c3d5-8b0f6abe7c72 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8DFE:23AA91:188A041:2140643:6A5473C7 |
| html-safe-nonce | b67a5afebe468240d259df38dc0720ce07d0ffdcab0625070c81116f993a723c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4REZFOjIzQUE5MToxODhBMDQxOjIxNDA2NDM6NkE1NDczQzciLCJ2aXNpdG9yX2lkIjoiMTUyMTY1NDA5OTU0Mzg4MDY0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cfab0dd0aa8a32d3566de5cffe63b5013a576e7aae32cbf1aabcf2eaebe8e515 |
| hovercard-subject-tag | issue:1716057008 |
| 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/25910/issue_layout |
| twitter:image | https://opengraph.githubassets.com/00b67043e0ecf707875d83e39002d32c87c26af91587bafaf33ef5ba563c94ab/matplotlib/matplotlib/issues/25910 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/00b67043e0ecf707875d83e39002d32c87c26af91587bafaf33ef5ba563c94ab/matplotlib/matplotlib/issues/25910 |
| og:image:alt | Description Using marker kwarg in grid raise a exception Version used python 3.11.2, really I found this bug same time ago using 3.9 or so matplotlib 3.6.3 Although the error names Tkinter, the err... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jjgomera |
| 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 | 6d28624802c2f7d9500239dd6870ed7031b7353b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width