1D plottingΒΆ

Plot a basic 1D figure

plot basic1dplot
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0, 3, 20)
y = np.linspace(0, 9, 20)
plt.plot(x, y)
plt.plot(x, y, "o")
plt.show()

Total running time of the script: (0 minutes 0.049 seconds)

Gallery generated by Sphinx-Gallery