Title: Copy to Clipboard not Enabled by Default · Issue #13595 · matplotlib/matplotlib · GitHub
Open Graph Title: Copy to Clipboard not Enabled by Default · Issue #13595 · matplotlib/matplotlib
X Title: Copy to Clipboard not Enabled by Default · Issue #13595 · matplotlib/matplotlib
Description: Bug report Bug summary Copy Canvas tool seems to have been implemented in v3.0 as in #10446 but is not enabled in Matplotlib 3.0.2 by default. Copy/paste functionality can be restored using plt.rcParams['toolbar'] = 'toolmanager' but cre...
Open Graph Description: Bug report Bug summary Copy Canvas tool seems to have been implemented in v3.0 as in #10446 but is not enabled in Matplotlib 3.0.2 by default. Copy/paste functionality can be restored using plt.rcP...
X Description: Bug report Bug summary Copy Canvas tool seems to have been implemented in v3.0 as in #10446 but is not enabled in Matplotlib 3.0.2 by default. Copy/paste functionality can be restored using plt.rcP...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/13595
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Copy to Clipboard not Enabled by Default","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\nCopy Canvas tool seems to have been implemented in v3.0 as in #10446 but is not enabled in Matplotlib 3.0.2 by default. Copy/paste functionality can be restored using `plt.rcParams['toolbar'] = 'toolmanager'` but creates warnings as in #7404\r\n\r\n\u003c!--A short 1-2 sentences that succinctly describes the bug--\u003e\r\n\r\n**Code for reproduction**\r\n\r\n\u003c!--A minimum code snippet required to reproduce the bug.\r\nPlease make sure to minimize the number of dependencies required, and provide\r\nany necessary plotted data.\r\nAvoid using threads, as Matplotlib is (explicitly) not thread-safe.--\u003e\r\n\r\n```python\r\n# Paste your code here\r\n# plt.rcParams['toolbar'] = 'toolmanager' #restores copy to clipboard functionality by replacing toolbar2 with toolmanager\r\nx = np.linsapce(1,10); y = np.linspace(1,10)\r\nfig, ax = plt.subplots()\r\nax.plot(x, y)\r\nplt.show()\r\n```\r\n\r\n**Actual outcome**\r\nDefault behavior (no copy/paste functionality, toolbar2)\r\n\r\n\r\nSetting toolbar to toolmanager (copy/paste functionality, toolmanager). Console warning output shown below when activated\r\n\r\n\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```\r\n# If applicable, paste the console output here\r\nC:\\Users\\Alex\\Miniconda3\\envs\\vanilla\\lib\\site-packages\\matplotlib\\backend_managers.py:58: UserWarning: Treat the new Tool classes introduced in v1.5 as experimental for now, the API will likely change in version 2.1 and perhaps the rcParam as well\r\n 'experimental for now, the API will likely change in ' +\r\nC:\\Users\\Alex\\Miniconda3\\envs\\vanilla\\lib\\site-packages\\matplotlib\\backend_tools.py:79: UserWarning: Treat the new Tool classes introduced in v1.5 as experimental for now, the API will likely change in version 2.1, and some tools might change name\r\n 'experimental for now, the API will likely change in ' +\r\n```\r\n\r\n**Expected outcome**\r\nPressing ctrl+c or cmd+c should copy figure to clipboard as in #10446 and rcParams documentation by default. It seems that it must be explicitly turned on at the moment\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\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: Windows 10\r\n * Matplotlib version: 3.0.2, installed via conda (default channel)\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): Qt5Agg\r\n * Python version: 3.7.1\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\n\r\n","author":{"url":"https://github.com/awbruch","@type":"Person","name":"awbruch"},"datePublished":"2019-03-05T16:22:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/13595/matplotlib/issues/13595"}
| 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:6c1c4f9f-d2d9-c07a-3e27-5990d76e1a00 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 88C0:B319:B3D413:F38A18:6A53193E |
| html-safe-nonce | cc0605e933952c974c434c3c620a08ba4b6fbf5f2eec069a137309cc1af7a081 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OEMwOkIzMTk6QjNENDEzOkYzOEExODo2QTUzMTkzRSIsInZpc2l0b3JfaWQiOiIyODg0ODIzMjA4Mjk2NjUxMDcwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f3c276790e002258502765e4480e60dbd39135ba888c5d431fff75196b32525b |
| hovercard-subject-tag | issue:417382607 |
| 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/13595/issue_layout |
| twitter:image | https://opengraph.githubassets.com/443e9ff0e4b4286e15b74fae1127c3cf37325799eecd86e83a4445e4ec224d78/matplotlib/matplotlib/issues/13595 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/443e9ff0e4b4286e15b74fae1127c3cf37325799eecd86e83a4445e4ec224d78/matplotlib/matplotlib/issues/13595 |
| og:image:alt | Bug report Bug summary Copy Canvas tool seems to have been implemented in v3.0 as in #10446 but is not enabled in Matplotlib 3.0.2 by default. Copy/paste functionality can be restored using plt.rcP... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | awbruch |
| 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