1D plottingΒΆ

Plot a basic 1D figure

../../../_images/sphx_glr_plot_basic1dplot_001.png
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.034 seconds)

Generated by Sphinx-Gallery