Menu

[r587]: / trunk / htdocs / examples / print_stdout.py  Maximize  Restore  History

Download this file

12 lines (9 with data), 201 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# print png to standard out
# usage: python print_stdout.py > somefile.png
import sys
import matplotlib
matplotlib.use('Agg')
from matplotlib.matlab import *
plot([1,2,3])
savefig(sys.stdout)
show()
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.