Skip to content

Instantly share code, notes, and snippets.

View scimax's full-sized avatar

scimax

  • Hamburg
  • 22:29 (UTC +02:00)
View GitHub Profile
@scimax
scimax / copyfig2clipboard.py
Last active July 7, 2023 20:48 — forked from i-namekawa/copy2clipboard.py
copy a matplotlib figure to Windows/MacOS clipboard as BMP/PNG (Python 3)
#!/usr/bin/python
from io import BytesIO
from time import sleep
from PIL import Image
import matplotlib.pyplot as plt
import tempfile
import os
import platform