Hallo wereld

Sinus

Amplitude
Periode
Loading...

Dingetje Tom

Grafiekje

import matplotlib.pyplot as plt fig, ax = plt.subplots() year_1 = [2016, 2017, 2018, 2019, 2020, 2021] population_1 = [42, 43, 45, 47, 48, 50] plt.plot(year_1, population_1, marker='o', linestyle='--', color='g', label='Country 1') plt.xlabel('Year') plt.ylabel('Population (M)') plt.title('Year vs Population') plt.legend(loc='lower right') display(fig, target="mpl")