plot_fragility_curve#
module wntr.graphics.curve
- plot_fragility_curve(FC, fill=True, key='Default', title='Fragility curve', xmin=0, xmax=1, npoints=100, xlabel='x', ylabel='Probability of exceeding a damage state', ax=None)[source]#
Plot fragility curve.
- Parameters:
FC (wntr.scenario.FragilityCurve object) – Fragility curve
fill (bool, optional) – If true, fill area under the curve
key (string, optional) – Fragility curve state distribution key
title (string, optional) – Plot title
xmin (float, optional) – X axis minimum
xmax (float, optional) – X axis maximum
npoints (int, optional) – Number of points
xlabel (string, optional) – X axis label
ylabel (string, optional) – Y axis label
ax (matplotlib axes object, optional) – Axes for plotting (None indicates that a new figure with a single axes will be used)
- Returns:
ax
- Return type:
matplotlib axes object