Init project after finished it and start of the report

This commit is contained in:
2026-10-12 19:45:30 +02:00
commit b2dde5453d
13 changed files with 781 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
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()