@masonjargon/

test_02

Python

Retry test_01 -- which has a missing image pane????

fork
loading
Files
  • main.py
  • plt.png
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import matplotlib.pyplot as plt
import numpy as np
plt.plot()
p=3.0
y = np.power(np.arange(12),p)
plt.plot(range(12),y,'ro')
plt.grid(True)
plt.show()
plt.savefig('plt.png')
print ('hello world')
print (np.pi)

print 
print (range(5), type(range(4)))