# matlibplot examples

import numpy as np
import matplotlib.pyplot as plt

# คำนวณค่าจุด x,y ที่จะอยู่บน sine และ cos curves
x = np.arange(0, 3 * np.pi, 0.1)
y_sin = np.sin(x)
y_cos = np.cos(x)

# วาดกราฟ​ โดยระบุรายละเอียดของกราฟ 
plt.plot(x, y_sin)
plt.plot(x, y_cos)
plt.xlabel('x axis label')
plt.ylabel('y axis label')
plt.title('Sine and Cosine')
plt.legend(['Sine','Cosine'])
plt.show()


