Skip to content

Instantly share code, notes, and snippets.

@ignisan
Last active December 28, 2015 22:19
Show Gist options
  • Save ignisan/7570375 to your computer and use it in GitHub Desktop.
Save ignisan/7570375 to your computer and use it in GitHub Desktop.
matplotlibの図をsixelとして出す
#!/usr/bin/env python2
#!/usr/bin/env python2
#vim:fileencoding=utf8
import pylab as pl
import numpy as np
import sixel
from cStringIO import StringIO as StringIO
def sixelfig():
buf = StringIO()
pl.savefig(buf)
buf.seek(0)
writer = sixel.SixelWriter()
writer.draw(buf)
def main():
pass
if __name__=="__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment