You are reading an old version of the documentation (v1.5.0). For the latest version see

We're updating the default styles for Matplotlib 2.0

Learn what to expect in the new updates


Previous topic

pylab_examples example code:

Next topic

pylab_examples example code:

This Page

pylab_examples example code: print_stdout.pyΒΆ

[source code]

# -*- noplot -*-
# print png to standard out
# usage: python > somefile.png

import sys
import matplotlib
import matplotlib.pyplot as plt

plt.plot([1, 2, 3])


Keywords: python, matplotlib, pylab, example, codex (see Search examples)