Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 263c06a commit c572eb9Copy full SHA for c572eb9
1 file changed
examples/pylab_examples/print_stdout.py
@@ -1,13 +1,9 @@
1
-#!/usr/bin/env python
2
-# -*- noplot -*-
3
-# print png to standard out
4
-# usage: python print_stdout.py > somefile.png
5
import sys
6
import matplotlib
7
matplotlib.use('Agg')
8
-from pylab import *
+import matplotlib.pyplot as plt
9
10
-plot([1, 2, 3])
+plt.plot([1, 2, 3])
11
12
-savefig(sys.stdout)
13
-show()
+plt.savefig(sys.stdout)
+plt.show()
0 commit comments