Skip to content

Commit 92e6cbc

Browse files
committed
Made it executable.
1 parent dd451e1 commit 92e6cbc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

simple-line.py

100644100755
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
#! /usr/bin/env python3.4
12
import matplotlib.pyplot as plt
23

4+
def main ():
5+
plt.plot([1,2,3,4])
6+
plt.ylabel('some numbers')
7+
plt.savefig("simple-line.png")
38

4-
plt.plot([1,2,3,4])
5-
plt.ylabel('some numbers')
6-
plt.savefig("simple-line.png")
9+
if __name__ == "__main__":
10+
main()

0 commit comments

Comments
 (0)