Skip to content

Instantly share code, notes, and snippets.

@pockethook
Created June 29, 2014 10:09
Show Gist options
  • Save pockethook/aa358136a9baceacc90c to your computer and use it in GitHub Desktop.
Save pockethook/aa358136a9baceacc90c to your computer and use it in GitHub Desktop.
Plot stdin grid
import matplotlib.pyplot as plt
from numpy import genfromtxt
from sys import stdin
data = genfromtxt(stdin.buffer)
plt.plot(data)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment