Skip to content

Instantly share code, notes, and snippets.

@johntyree
Created December 12, 2013 01:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johntyree/7921664 to your computer and use it in GitHub Desktop.
Save johntyree/7921664 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# coding: utf8
import sys
from numpy import loadtxt
from matplotlib.pyplot import matshow, show
mat = loadtxt(sys.stdin, dtype=bool, delimiter=',')
matshow(mat)
show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment