import numpy as np import matplotlib.pyplot as plt data = np.loadtxt("rabbits.csv", delimiter=",", skiprows=1, usecols=(0, 1)) month, total = data[:, 0], data[:, 1] fig, ax = plt.subplots(figsize=(9, 5)) ax.plot(month, total, lw=2, color="tab:blue") ax.set_yscale("log") ax.set_xlim(0, month.max()) ax.set_ylim(10, total.max() * 3) ax.set_xticks(np.arange(0, month.max() + 1, 24)) ax.grid(True, which="both", axis="y", alpha=0.3) ax.set_xlabel("Month") ax.set_ylabel("Total rabbits (log)") ax.set_title("Simulation Rabbit — population totale") fig.tight_layout() plt.show()