fgr1y76r4

an anonymous user · March 19, 2023
import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(0, 2*np.pi, 100)
y = np.sin(x)
fig, ax = plt.subplots()
ax.plot(x, y)
ax.set_xlabel('x')
ax.set_ylabel('y')
ax.set_title('Sine Wave')
plt.show()
Output
(Run the program to view its output)

Comments

Please sign up or log in to contribute to the discussion.