awips2/pythonPackages/matplotlib/examples/pylab_examples/print_stdout.py
root 06a8b51d6d Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 64fa9254b946eae7e61bbc3f513b7c3696c4f54f
2012-01-06 08:55:05 -06:00

13 lines
228 B
Python
Executable file

#!/usr/bin/env python
# -*- noplot -*-
# 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()