Logo Search packages:      
Sourcecode: matplotlib version File versions

print_stdout.py

#!/usr/bin/env python
# print png to standard out
# usage: python print_stdout.py > somefile.png
import sys
import matplotlib
matplotlib.use('Agg')
from pylab import *

plot([1,2,3])

savefig(sys.stdout)
show()

Generated by  Doxygen 1.6.0   Back to index