Last active
December 28, 2015 22:19
-
-
Save ignisan/7570375 to your computer and use it in GitHub Desktop.
matplotlibの図をsixelとして出す
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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