21 lines
472 B
Python
21 lines
472 B
Python
import matplotlib.pyplot as plt
|
|
from simulation import simulate_days
|
|
|
|
trust, bread = simulate_days(days=1825)
|
|
|
|
# Plot results
|
|
plt.figure(figsize=(12, 4))
|
|
plt.subplot(1, 2, 1)
|
|
plt.plot(trust, label="Community Trust")
|
|
plt.xlabel("Day")
|
|
plt.ylabel("Trust Score")
|
|
plt.title("Community Trust Over Time")
|
|
|
|
plt.subplot(1, 2, 2)
|
|
plt.plot(bread, label="Bread Stock", color="orange")
|
|
plt.xlabel("Day")
|
|
plt.ylabel("Loaves")
|
|
plt.title("Bread Inventory")
|
|
plt.tight_layout()
|
|
plt.show()
|