Subplot Error Pls help

theta = np.linspace(0,360,30)
y1 = np.sin(theta * np.pi / 180)
y2 = np.cos(theta * np.pi / 180)

x = np.linspace(0,10,11)
z1 = x ** 2
z2 = x ** 3

plt.figure(figsize = (10,10))

plt.subplot(221)
plt.plot(theta,y1, color = ‘blue’, lw = ‘1’)
plt.title(‘Sin’r’(\theta{})', fontsize = ‘20’)
plt.xlabel(‘Angle in Degrees’, fontsize = ‘5’)
plt.ylabel(‘Value of function’, fontsize = ‘5’)
plt.tight_layout(pad = 10)

plt.subplot(222)
plt.plot(theta,y2, color = ‘green’, lw = ‘1’)
plt.title(‘Cos’r’(\theta{})', fontsize = ‘20’)
plt.xlabel(‘Angle in Degrees’, fontsize = ‘5’)
plt.ylabel(‘Value of function’, fontsize = ‘5’)

plt.subplot(223)
plt.plot(x,z1, color = ‘purple’, lw = ‘1’)
plt.title(‘Z = ‘r’\x^2’, fontsize = ‘20’)
plt.xlabel(‘Value of x’, fontsize = ‘5’)
plt.ylabel(‘Value of y’, fontsize = ‘5’)

plt.subplot(224)
plt.plot(x,z2, color = ‘red’, lw = ‘1’)
plt.title(‘Z = ‘r’\x^3’, fontsize = ‘20’)
plt.xlabel(‘Value of x’, fontsize = ‘5’)
plt.ylabel(‘Value of y’, fontsize = ‘5’)

plt.show()

Please read the pinned thread in order to understand code formatting for the forum, so that we can see the code properly; then also edit in order to explain what is wrong. What error did you get? What “help” are you looking for?