Plot Loss Curves

This IPython notebook allows the user to visualise the loss curves for individual assets generated from a probabilistic event-based risk analysis or a classical PSHA-based risk analysis.

Please specify below the path of the xml file containing the loss curve results, and a list of the asset ids for which loss curve plots are needed (the asset ids should match the ids in the exposure model used for running the analysis).

In [ ]:
%matplotlib inline
import plot_loss_curves as plotlc

loss_curves_file = '../sample_outputs/classical_risk/loss-curves-structural.xml'
assets_list = ['a1', 'a10', 'a100']

log_scale_x = True
log_scale_y = True

plotlc.plot_loss_curves(loss_curves_file, assets_list, log_scale_x, log_scale_y)