fork download
  1. import numpy as np
  2. import matplotlib.pyplot as plt
  3. A=np.array([[11,22,33],[10,20,30]])
  4. print(A)
  5. b=4
  6. print(b)
  7. C=A+b
  8. print(C)
  9. x=np.arange(0,3*np.pi,0.1)
  10. y_sin=np.sin(x)
  11. y_cos=np.cos(x)
  12. plt.plot(x,y_sin)
  13. plt.plot(x,y_cos)
  14. plt.xlabel('x axis label')
  15. plt.ylabel('y axis label')
  16. plt.title('sine and cosine')
  17. plt.legend(['sine','cosine'])
  18. plt.show()
  19.  
Success #stdin #stdout #stderr 3.44s 67912KB
stdin
Standard input is empty
stdout
[[11 22 33]
 [10 20 30]]
4
[[15 26 37]
 [14 24 34]]
stderr
Fontconfig error: No writable cache directories