import numpy as npimport matplotlib.pyplot as plt
x = np.linspace(-2np.pi, 2np.pi, 1000)y = (1/3) * np.sin(x + np.pi/6)
plt.figure(figsize=(10,6))plt.plot(x, y, label='y = 1/3sin(x+π/6)', color='b')plt.title('Graph of y = 1/3sin(x+π/6)')plt.xlabel('x')plt.ylabel('y')plt.axhline(0, color='black',linewidth=0.5)plt.axvline(0, color='black',linewidth=0.5)plt.grid(color = 'gray', linestyle = '--', linewidth = 0.5)plt.legend()plt.show()
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(-2np.pi, 2np.pi, 1000)
y = (1/3) * np.sin(x + np.pi/6)
plt.figure(figsize=(10,6))
plt.plot(x, y, label='y = 1/3sin(x+π/6)', color='b')
plt.title('Graph of y = 1/3sin(x+π/6)')
plt.xlabel('x')
plt.ylabel('y')
plt.axhline(0, color='black',linewidth=0.5)
plt.axvline(0, color='black',linewidth=0.5)
plt.grid(color = 'gray', linestyle = '--', linewidth = 0.5)
plt.legend()
plt.show()