SOC Economic Model - Advanced Plotting Demo

 

 

 

cascade_list = list(model.cascades.values())

#plot cascade sizes and frequency in loglog
cascade_h = np.histogram(cascade_list, bins=50)
cascade_h_lim = [c for c in list(cascade_h[0]) if c >= 8]
l1 = plt.loglog(cascade_h_lim)
plt.xlabel('Log(cascade size)')
plt.ylabel('Log(cascade frequency)')
plt.show()

 

 


Print