src.plot.simple_curve_plot
Classes
|
- class src.plot.simple_curve_plot.SimpleCurvePlot(**kwargs)
- Author:
Alberto M. Esmoris Pena
Class to plot the figures associated with a
SimpleCurveEvaluation. Two figures are produced:A KPI summary bar chart showing Coverage, Deviation (length-anchored over the polyline 3D arc), Hallucination, count of hallucinated features, Self-intersections and Gaps.
A per-feature hallucination histogram with a vertical line at the configured per-feature threshold.
See
MplPlotandSimpleCurveEvaluation.- Variables:
coverage_pct – Coverage percentage.
deviation_pct – Deviation percentage (length-anchored over the polyline 3D arc).
hallucination_pct – Length-weighted hallucination percentage.
n_hallucinated_features – Count of features whose per-feature score exceeds the configured threshold.
n_features_scored – Total number of scored features.
per_feature_hallucination – List of tuples
(fi, score, hall_len, feat_len)per feature.n_self_intersections – Total 2D self-intersections.
n_gaps – Total 2D gaps.
hallucination_feature_threshold – Threshold drawn as a reference line in the histogram.
summary_path – Path for the KPI summary figure.
hallucination_path – Path for the per-feature hallucination histogram.
- __init__(**kwargs)
Initialize the SimpleCurvePlot.
- Parameters:
kwargs – The plot attributes.
- plot(**kwargs)
Render the figures for which a path is set. See
Plot.plot().
- has_kpi_info()
- Returns:
True when at least the percentage KPIs are available.
- Return type:
bool
- has_hallucination_info()
- Returns:
True when the per-feature hallucination data is available.
- Return type:
bool