2021-Sep-13, Monday
import numpy as np import matplotlib.pyplot as plt
x = np.linspace(0, 20, 1001)
y = np.sin(x)
fig = plt.figure() ax = fig.add_axes([0, 0, 1, 1]) ax.plot(x, y, "-") ax.set(xlabel="x", ylabel="y") ax.grid(True) plt.show()