@amasad/

interactive-plot

Python

No description

fork
loading
Files
  • main.py
  • plot.png

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.8472418312524646","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"aW1wb3J0IG1hdHBsb3RsaWIgYXMgbXBsCm1wbC51c2UoJ0FnZycpCmltcG9ydCBtYXRwbG90bGliLnB5cGxvdCBhcyBwbHQKCnBsdC5wbG90KFs1LDEsMiwzLDRdKQoKcGx0LnNhdmVmaWcoJ3Bsb3QucG5nJyk="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt

plt.plot([5,1,2,3,4])

plt.savefig('plot.png')