Skip to content

Instantly share code, notes, and snippets.

@DenshellDenejour
Created April 7, 2023 18:54
Show Gist options
  • Select an option

  • Save DenshellDenejour/a90b12d922382bded6641601123760c5 to your computer and use it in GitHub Desktop.

Select an option

Save DenshellDenejour/a90b12d922382bded6641601123760c5 to your computer and use it in GitHub Desktop.
import sys
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
ypoints = np.array([5, 8, 1, 17])
plt.plot(ypoints, linestyle = 'solid')
plt.show()
plt.savefig(sys.stdout.buffer)
sys.stdout.flush()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment