Title: [Bug]: Spurious lines added with some manually add contour labels · Issue #27333 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Spurious lines added with some manually add contour labels · Issue #27333 · matplotlib/matplotlib
X Title: [Bug]: Spurious lines added with some manually add contour labels · Issue #27333 · matplotlib/matplotlib
Description: Bug summary With Matplotlib 3.8+ I'm seeing spurious lines that get added with manually labeled contours via clabel. It seems to only happen in locations where the contours are more complex or near those areas, but I haven't been able to...
Open Graph Description: Bug summary With Matplotlib 3.8+ I'm seeing spurious lines that get added with manually labeled contours via clabel. It seems to only happen in locations where the contours are more complex or near...
X Description: Bug summary With Matplotlib 3.8+ I'm seeing spurious lines that get added with manually labeled contours via clabel. It seems to only happen in locations where the contours are more complex or ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/27333
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Spurious lines added with some manually add contour labels","articleBody":"### Bug summary\n\nWith Matplotlib 3.8+ I'm seeing spurious lines that get added with manually labeled contours via `clabel`.\r\n\r\nIt seems to only happen in locations where the contours are more complex or near those areas, but I haven't been able to track down why this happens. \n\n### Code for reproduction\n\n```python\nExample code (here working with Matplotlib \u003c3.8): https://geocat-examples.readthedocs.io/en/latest/gallery/Contours/NCL_coneff_8.html\r\n\r\nI'll work on stripping down this example though.\n```\n\n\n### Actual outcome\n\nwhen run in a script that provided a manual list of contour label locations:\r\n\u003cimg width=\"623\" alt=\"Screen Shot 2023-11-15 at 3 17 14 PM\" src=\"https://github.com/matplotlib/matplotlib/assets/7872563/a5815b2f-3160-4f10-a9ac-03894c203314\"\u003e\r\n\r\nwhen locations were manually clicked:\r\n\u003cimg width=\"763\" alt=\"Screen Shot 2023-11-15 at 3 21 19 PM\" src=\"https://github.com/matplotlib/matplotlib/assets/7872563/10f083da-5845-46a0-98ea-c6eb47371d23\"\u003e\r\n\r\n\n\n### Expected outcome\n\nsimilar, but without the spurious straight lines.\n\n### Additional information\n\nWhat are the conditions under which this bug happens?\r\n* happens with both \"clicked\" and specified manual contour labels in certain locations\r\n* seems to happen only near areas with more complex contours\r\n* interestingly, this also happens when you specify contour label locations this way on a cartopy map and the specified points are not on the projected map. however, this is not the case here.\r\nHas this worked in earlier versions?\r\n* worked prior to 3.8\r\nDo you know why this bug is happening?\r\n* unfortunately, no. will look into it a bit more though.\r\n\n\n### Operating system\n\nOS/X\n\n### Matplotlib Version\n\n3.8.1\n\n### Matplotlib Backend\n\nMacOSX\n\n### Python version\n\nPython 3.11.6\n\n### Jupyter version\n\n4.0.8\n\n### Installation\n\nconda","author":{"url":"https://github.com/kafitzgerald","@type":"Person","name":"kafitzgerald"},"datePublished":"2023-11-15T22:41:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/27333/matplotlib/issues/27333"}
| 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:baabfa60-d4ff-0d3f-08b4-ffe013c58229 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E85E:33E60B:2964F4F:3892367:6A53BA5D |
| html-safe-nonce | 8590df419b417f80a077e5b98b8bda7bb424ae06aeb5ade102f8bb00666d7635 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODVFOjMzRTYwQjoyOTY0RjRGOjM4OTIzNjc6NkE1M0JBNUQiLCJ2aXNpdG9yX2lkIjoiNzE5MDM0MDgzODA1NjI0NTg1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 42661297b63fb71b83cd3668a8f6d3c02c3f78efab0945309a277f84a0ea2c2a |
| hovercard-subject-tag | issue:1995701374 |
| 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/27333/issue_layout |
| twitter:image | https://opengraph.githubassets.com/632b7c4aeff0304adab2689c2f415465fc30d28c1054a5d4a0a59f26cd09e9d8/matplotlib/matplotlib/issues/27333 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/632b7c4aeff0304adab2689c2f415465fc30d28c1054a5d4a0a59f26cd09e9d8/matplotlib/matplotlib/issues/27333 |
| og:image:alt | Bug summary With Matplotlib 3.8+ I'm seeing spurious lines that get added with manually labeled contours via clabel. It seems to only happen in locations where the contours are more complex or near... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kafitzgerald |
| 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