Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Copy to Clipboard not Enabled by Default #13595

Open
Labels
keepItems to be ignored by the “Stale” Github Action
@awbruch

Description

@awbruch

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 usingplt.rcParams['toolbar'] = 'toolmanager' but creates warnings as in#7404

Code for reproduction

# Paste your code here# plt.rcParams['toolbar'] = 'toolmanager'  #restores copy to clipboard functionality by replacing toolbar2 with toolmanagerx=np.linsapce(1,10);y=np.linspace(1,10)fig,ax=plt.subplots()ax.plot(x,y)plt.show()

Actual outcome
Default behavior (no copy/paste functionality, toolbar2)
image

Setting toolbar to toolmanager (copy/paste functionality, toolmanager). Console warning output shown below when activated
image

# If applicable, paste the console output hereC:\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  'experimental for now, the API will likely change in ' +C:\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  'experimental for now, the API will likely change in ' +

Expected outcome
Pressing 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

Matplotlib version

  • Operating system: Windows 10
  • Matplotlib version: 3.0.2, installed via conda (default channel)
  • Matplotlib backend (print(matplotlib.get_backend())): Qt5Agg
  • Python version: 3.7.1
  • Jupyter version (if applicable): N/A
  • Other libraries:

Metadata

Metadata

Assignees

No one assigned

    Labels

    keepItems to be ignored by the “Stale” Github Action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp