Title: I'd like to see axes.get_label() when clicking on 'Edit curves lines and axes parameters' after plt.show() · Issue #2593 · matplotlib/matplotlib · GitHub
Open Graph Title: I'd like to see axes.get_label() when clicking on 'Edit curves lines and axes parameters' after plt.show() · Issue #2593 · matplotlib/matplotlib
X Title: I'd like to see axes.get_label() when clicking on 'Edit curves lines and axes parameters' after plt.show() · Issue #2593 · matplotlib/matplotlib
Description: when I do plt.show() on some plot and then click on 'Edit curves lines and axes parameters' button, I'd like to see the label I've applied using ax.set_label('my_label'). Digging around in matplotlib\backends\backend_qt4.py. I found the ...
Open Graph Description: when I do plt.show() on some plot and then click on 'Edit curves lines and axes parameters' button, I'd like to see the label I've applied using ax.set_label('my_label'). Digging around in matplotl...
X Description: when I do plt.show() on some plot and then click on 'Edit curves lines and axes parameters' button, I'd like to see the label I've applied using ax.set_label('my_label'). Di...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/2593
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"I'd like to see axes.get_label() when clicking on 'Edit curves lines and axes parameters' after plt.show()","articleBody":"when I do `plt.show()` on some plot and then click on 'Edit curves lines and axes parameters' button, I'd like to see the label I've applied using `ax.set_label('my_label')`. Digging around in `matplotlib\\backends\\backend_qt4.py`. I found the following code as part of the NavigationToolbar2QT class: \n\n``` python\n title = axes.get_title()\n ylabel = axes.get_ylabel()\n if title:\n fmt = \"%(title)s\"\n if ylabel:\n fmt += \": %(ylabel)s\"\n fmt += \" (%(axes_repr)s)\"\n elif ylabel:\n fmt = \"%(axes_repr)s (%(ylabel)s)\"\n else:\n fmt = \"%(axes_repr)s\"\n titles.append(fmt % dict(title = title,\n ylabel = ylabel,\n axes_repr = repr(axes)))\n```\n\nCould an extra elif be added? It would only kick it if there was no title and no ylabel:\n\n``` python\n title = axes.get_title()\n ylabel = axes.get_ylabel()\n label = axes.get_label()\n if title:\n fmt = \"%(title)s\"\n if ylabel:\n fmt += \": %(ylabel)s\"\n fmt += \" (%(axes_repr)s)\"\n elif ylabel:\n fmt = \"%(axes_repr)s (%(ylabel)s)\"\n elif label:\n fmt = \"%(axes_repr)s (%(label)s)\"\n else:\n fmt = \"%(axes_repr)s\"\n titles.append(fmt % dict(title = title,\n ylabel = ylabel, label=label\n axes_repr = repr(axes)))\n```\n","author":{"url":"https://github.com/rtrwalker","@type":"Person","name":"rtrwalker"},"datePublished":"2013-11-15T05:43:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/2593/matplotlib/issues/2593"}
| 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:058cc2c5-885b-76c8-938e-aa97754dcc4d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D9E:1187B3:21ACA88:2E0DA75:6A539A1B |
| html-safe-nonce | 64d2b7a6f7f2e70d3d2af24a19d880694e0ea62125c6555552a85254f923bdae |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDlFOjExODdCMzoyMUFDQTg4OjJFMERBNzU6NkE1MzlBMUIiLCJ2aXNpdG9yX2lkIjoiNDA2OTYyNDM4MTQxMDkwMzMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d2998dd6274420fe85d6953d063a782104c2b2f96f4057c640e117cfbe9fa371 |
| hovercard-subject-tag | issue:22714648 |
| 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/2593/issue_layout |
| twitter:image | https://opengraph.githubassets.com/253bc18f703de9f4e09ce12f98a5e2b9c5eb2ade3ab4b74310d156d79e2403c5/matplotlib/matplotlib/issues/2593 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/253bc18f703de9f4e09ce12f98a5e2b9c5eb2ade3ab4b74310d156d79e2403c5/matplotlib/matplotlib/issues/2593 |
| og:image:alt | when I do plt.show() on some plot and then click on 'Edit curves lines and axes parameters' button, I'd like to see the label I've applied using ax.set_label('my_label'). Digging around in matplotl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rtrwalker |
| 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 | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width