Skip to content

Adds a Ctrl+C handler to matplotlib figures for copying the figure to the clipboard

Notifications You must be signed in to change notification settings

SF73/addcopyfighandler

 
 

Repository files navigation

addcopyfighandler: Add a Ctrl+C handler to matplotlib figures for copying the figure to the clipboard

Simply importing this module (after importing matplotlib or pyplot) will add a handler so that pressing Ctrl+C with a matplotlib figure window selected will copy the figure to the clipboard as an image.

Original concept code taken from: https://stackoverflow.com/questions/31607458/how-to-add-clipboard-support-to-matplotlib-figures

Releases

2.0.0: 2019-04-15

  • Remove Qt requirement. Now use Pillow to grab the figure image, and win32clipboard to manage the Windows clipboard.

1.0.2: 2018-11-27

  • Force use of Qt4Agg or Qt5Agg. Some installs will default to TkAgg backend, which this module doesn't support. Forcing the backend to switch when loading this module saves the user from having to manually specify one of the Qt backends in every analysis.

1.0.1: 2018-11-27

  • Improve setup.py: remove need for importing module, add proper installation dependencies
  • Change readme from ReST to Markdown

1.0: 2017-08-09

  • Initial release

About

Adds a Ctrl+C handler to matplotlib figures for copying the figure to the clipboard

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 98.3%
  • Batchfile 1.7%