Title: [Bug]: Curve styles gets mixed up when edited in the Curves Tab of Figure Options (Edit Axis) · Issue #22384 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Curve styles gets mixed up when edited in the Curves Tab of Figure Options (Edit Axis) · Issue #22384 · matplotlib/matplotlib
X Title: [Bug]: Curve styles gets mixed up when edited in the Curves Tab of Figure Options (Edit Axis) · Issue #22384 · matplotlib/matplotlib
Description: Bug summary This happens when QT5, resp. Automatic backend is selected in Preferences (I'm using WinPython 3.9.10). I have fixed the _exec() bug on in my edition to avoid the figure to freeze on dialogue close - that's why reporting to t...
Open Graph Description: Bug summary This happens when QT5, resp. Automatic backend is selected in Preferences (I'm using WinPython 3.9.10). I have fixed the _exec() bug on in my edition to avoid the figure to freeze on di...
X Description: Bug summary This happens when QT5, resp. Automatic backend is selected in Preferences (I'm using WinPython 3.9.10). I have fixed the _exec() bug on in my edition to avoid the figure to freeze o...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/22384
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Curve styles gets mixed up when edited in the Curves Tab of Figure Options (Edit Axis)","articleBody":"### Bug summary\r\n\r\nThis happens when QT5, resp. Automatic backend is selected in Preferences (I'm using WinPython 3.9.10).\r\nI have fixed the [_exec() bug](https://github.com/matplotlib/matplotlib/issues/3052/) on in my edition to avoid the figure to freeze on dialogue close - that's why reporting to the 3.5.2 branch, even though I'm using matplotlib 3.5.1.\r\nHow to reproduce:\r\nIf a figure have multiple curves with different styles (dashed, continuous, doted, etc.) and one edits their Labels in the Curves Tab of Figure Options dialogue (invoked by clicking on Edit Axes button on the top of the figure) the line styles get get \"scrambled\" upon hitting Apply or OK button.\r\nE.g. the Code snippet below produced a figure like the one shown in \"expected outcome\". Upon editing the default _child0,_child1,_child2 titles like this:\r\n_child2 -\u003e Test\r\n_child1 -\u003e Test 3\r\n_child0 -\u003e do not edit\r\nThen the figure gets updated to the state depicted in \"actual outcome\" - i.e. line styles are scrambled.\r\nDerived from the \"new colors/styles\" I suspect that the list of curves/styles gets \"re-sorted\" and the new curve positions are wrongly mapped!\r\n\r\n### Code for reproduction\r\n\r\n```python\r\nfigure()\r\nplot([1,0],[1,1],'--')\r\nplot([0,0],[0,1],'-')\r\nplot([0,1],[1,0],'-.')\r\n```\r\n\r\n\r\n### Actual outcome\r\n\r\n\r\n\r\n\r\n### Expected outcome\r\n\r\n\r\n\r\n\r\n### Additional information\r\n\r\n_No response_\r\n\r\n### Operating system\r\n\r\nWindows 10\r\n\r\n### Matplotlib Version\r\n\r\n3.5.1, with _exec() fix applied\r\n\r\n### Matplotlib Backend\r\n\r\nQT5\r\n\r\n### Python version\r\n\r\n3.9.10\r\n\r\n### Jupyter version\r\n\r\n_No response_\r\n\r\n### Installation\r\n\r\n_No response_","author":{"url":"https://github.com/gabrovche","@type":"Person","name":"gabrovche"},"datePublished":"2022-02-03T11:13:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/22384/matplotlib/issues/22384"}
| 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:ef5b6392-5365-76e3-db2e-cdadb01ce61c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E794:18F220:14D572:1D4D79:6A532EB1 |
| html-safe-nonce | 0c7b046bddc8658140cf288274ac58982e71fa1f5afa514abc5becc460d46533 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzk0OjE4RjIyMDoxNEQ1NzI6MUQ0RDc5OjZBNTMyRUIxIiwidmlzaXRvcl9pZCI6IjUwMTAxNjE1MjgxNzcxMTA3MDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1c6ea1747f827b4db6c93556fb6c6839edd02d937e3c1d97334bcfda3d60fb2b |
| hovercard-subject-tag | issue:1122955134 |
| 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/22384/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2f58db1a716c4485a02d2f5a8ce0b4f7891dca52515f1c8321f21a920a140ca5/matplotlib/matplotlib/issues/22384 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2f58db1a716c4485a02d2f5a8ce0b4f7891dca52515f1c8321f21a920a140ca5/matplotlib/matplotlib/issues/22384 |
| og:image:alt | Bug summary This happens when QT5, resp. Automatic backend is selected in Preferences (I'm using WinPython 3.9.10). I have fixed the _exec() bug on in my edition to avoid the figure to freeze on di... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gabrovche |
| 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