Title: Coordinate text wrapping in navigation toolbar · Issue #10375 · matplotlib/matplotlib · GitHub
Open Graph Title: Coordinate text wrapping in navigation toolbar · Issue #10375 · matplotlib/matplotlib
X Title: Coordinate text wrapping in navigation toolbar · Issue #10375 · matplotlib/matplotlib
Description: Bug report Bug summary The navigation toolbar at the bottom of a figure window contains a message box for displaying x and y coordinates. With the MacOSX backend, the available space appears to be fixed size and long text wraps and becom...
Open Graph Description: Bug report Bug summary The navigation toolbar at the bottom of a figure window contains a message box for displaying x and y coordinates. With the MacOSX backend, the available space appears to be ...
X Description: Bug report Bug summary The navigation toolbar at the bottom of a figure window contains a message box for displaying x and y coordinates. With the MacOSX backend, the available space appears to be ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/10375
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Coordinate text wrapping in navigation toolbar","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\u003c!--A short 1-2 sentences that succinctly describes the bug--\u003e\r\nThe navigation toolbar at the bottom of a figure window contains a message box for displaying x and y coordinates. With the MacOSX backend, the available space appears to be fixed size and long text wraps and becomes unreadable even though the window width might be able to accommodate more text without wrapping.\r\n\r\n**Code for reproduction**\r\n\r\n\u003c!--A minimum code snippet required to reproduce the bug, also minimizing the number of dependencies required--\u003e\r\n\r\n```python\r\nfrom matplotlib import pyplot as plt\r\nfrom math import pi, sin\r\n\r\nN = 30\r\nx = [n/N for n in range(5*N)]\r\ny = [sin(i*pi) for i in x]\r\n\r\nax = plt.figure().add_subplot(1, 1, 1)\r\nax.format_coord = lambda x, y : 'the x-coordinate = ' + format(x, '1.4f') + ', ' + \\\r\n ' and the y-coordinate = ' + format(y, '1.4f')\r\nplt.plot(x, y)\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\u003cimg width=\"752\" alt=\"small messagebox\" src=\"https://user-images.githubusercontent.com/36115336/35771859-76e1458c-0901-11e8-9def-20ac3430d008.png\"\u003e\r\n\r\n\r\n**Expected outcome**\r\n\r\n\u003c!--A description of the expected outcome from the code snippet--\u003e\r\n\u003c!--If this used to work in an earlier version of Matplotlib, please note the version it used to work on--\u003e\r\nI don't know if the behavior was different in earlier versions. I do know that the behavior is more \"sensible\" in the TkAgg backend. I haven't tested other backends. In TkAgg the available space expands as the window width expands.\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: Mac OS X 10.13.3 (High Sierra)\r\n * Matplotlib version: 2.1.1\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): MacOSX\r\n * Python version: 3.6.4\r\n * Jupyter version (if applicable): n/a\r\n * Other libraries:\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\nInstalled Python from installer downloaded from python.org. Installed matplotlib with pip.","author":{"url":"https://github.com/jtleighton","@type":"Person","name":"jtleighton"},"datePublished":"2018-02-03T21:53:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/10375/matplotlib/issues/10375"}
| 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:0bb80461-5f6f-390f-042f-f90e293b2e44 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 90FA:37F8D9:1950FCE:22AD13E:6A573156 |
| html-safe-nonce | ada5f893997d5331e0aad885f1e1d4cb70043c5599addd882caac54aa2218698 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEZBOjM3RjhEOToxOTUwRkNFOjIyQUQxM0U6NkE1NzMxNTYiLCJ2aXNpdG9yX2lkIjoiNDA4MTYwMzg1ODA3MzU5NjI0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ba50122b909bc41cde1e2ebb8ac3e281d1df3f06453811c02312bc3ba72c5fea |
| hovercard-subject-tag | issue:294148219 |
| 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/10375/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2723d2cb83802b0889c0a39a353475d645e492e982d770c04928fe900d8f3ab9/matplotlib/matplotlib/issues/10375 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2723d2cb83802b0889c0a39a353475d645e492e982d770c04928fe900d8f3ab9/matplotlib/matplotlib/issues/10375 |
| og:image:alt | Bug report Bug summary The navigation toolbar at the bottom of a figure window contains a message box for displaying x and y coordinates. With the MacOSX backend, the available space appears to be ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jtleighton |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| 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 | 2576d1f0198cf1588faf2edf27f1ed120903be10 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width