Title: Freeze when setting dashed linewidth to a close-to-zero float · Issue #14498 · matplotlib/matplotlib · GitHub
Open Graph Title: Freeze when setting dashed linewidth to a close-to-zero float · Issue #14498 · matplotlib/matplotlib
X Title: Freeze when setting dashed linewidth to a close-to-zero float · Issue #14498 · matplotlib/matplotlib
Description: Bug report Bug summary When setting the linewidth to a value close to zero (like 1e-15) and having a dashed linestyle in a pyplot, the application freezes. Code for reproduction from matplotlib import pyplot as plt x = [0,1] y = [0,1] p ...
Open Graph Description: Bug report Bug summary When setting the linewidth to a value close to zero (like 1e-15) and having a dashed linestyle in a pyplot, the application freezes. Code for reproduction from matplotlib imp...
X Description: Bug report Bug summary When setting the linewidth to a value close to zero (like 1e-15) and having a dashed linestyle in a pyplot, the application freezes. Code for reproduction from matplotlib imp...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/14498
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Freeze when setting dashed linewidth to a close-to-zero float","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nWhen setting the linewidth to a value close to zero (like 1e-15) and having a dashed linestyle in a pyplot, the application freezes.\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nfrom matplotlib import pyplot as plt\r\n\r\nx = [0,1]\r\ny = [0,1]\r\n\r\np = plt.plot(x,y, ls = \"--\", lw = 0.1, ms = 0.1, marker = \"o\", alpha = 1.0)\r\n\r\n# ok\r\n# plt.setp(p, lw = 1e-3)\r\n\r\n# freeze\r\nplt.setp(p, lw = 1e-15)\r\n\r\nplt.show()\r\n```\r\n\r\n**Actual outcome**\r\n\r\nThe window opens but no plot (not even axis) is shown, instead the window is not responding.\r\n\r\n**Expected outcome**\r\n\r\nPrimary Expectation: The application should not freeze.\r\nSecondary Expectation: Show either no line at all or as thin as displayable.\r\n\r\n**Matplotlib version**\r\n * Operating system: Windows 7\r\n * Matplotlib version: 2.2.4 (same with 3.1.0)\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): TkAgg (same with Qt5Agg/PySide2)\r\n * Python version: 3.6.5 32bit\r\n\r\ninstalled with pip\r\n\r\n","author":{"url":"https://github.com/fk3","@type":"Person","name":"fk3"},"datePublished":"2019-06-08T17:12:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":17},"url":"https://github.com/14498/matplotlib/issues/14498"}
| 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:635001fb-d080-9a31-37d1-3c41273bfd64 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8054:2DC8D1:6205094:8A309DA:6A502880 |
| html-safe-nonce | 00463c0c98783382dd9a582a70e2b422923ab4e925a1af205edada5c1d2125f6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDU0OjJEQzhEMTo2MjA1MDk0OjhBMzA5REE6NkE1MDI4ODAiLCJ2aXNpdG9yX2lkIjoiODg1ODg4Mjg1NTk5Mzg3ODY1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 203ad51fe90075b8e2f3f1efec1bc43f81ec096174474ecae699b920d16dd9a1 |
| hovercard-subject-tag | issue:453815166 |
| 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/14498/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3927c3dac8aa0969bb8f07ade4f80eae365ba7721d7c55a164996c1f1434a8be/matplotlib/matplotlib/issues/14498 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3927c3dac8aa0969bb8f07ade4f80eae365ba7721d7c55a164996c1f1434a8be/matplotlib/matplotlib/issues/14498 |
| og:image:alt | Bug report Bug summary When setting the linewidth to a value close to zero (like 1e-15) and having a dashed linestyle in a pyplot, the application freezes. Code for reproduction from matplotlib imp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fk3 |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| 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 | d90666eaf032b7eb8975a378efe38e37f4ebb96c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width