seismometer.plot.mpl.metric_vs_threshold¶
- seismometer.plot.mpl.metric_vs_threshold(stats, metric, *, conf=0.95, highlight=None, axis=None)¶
Plots a metric vs threshold curve.
- Parameters:
stats (pd.DataFrame) – The table of performance metrics of the form given by calculate_bin_stats.
metric (str) – The performance metric to plot, must be a column in the stats dataframe.
conf (Number, optional) – The confidence level for the performance metric, by default 0.95.
highlight (Optional[list[Number]], optional) – A list of thresholds to highlight on the plot, by default None.
axis (Optional[plt.Axes], optional) – The matplotlib axis to draw, by default None; creates a new figure.
- Return type:
Figure