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 dd451e1 commit 92e6cbcCopy full SHA for 92e6cbc
simple-line.py
100644
100755
@@ -1,6 +1,10 @@
1
+#! /usr/bin/env python3.4
2
import matplotlib.pyplot as plt
3
4
+def main ():
5
+ plt.plot([1,2,3,4])
6
+ plt.ylabel('some numbers')
7
+ plt.savefig("simple-line.png")
8
-plt.plot([1,2,3,4])
-plt.ylabel('some numbers')
-plt.savefig("simple-line.png")
9
+if __name__ == "__main__":
10
+ main()
0 commit comments