voltage_status#

popo.plotting.network.voltage_status(voltage, low=0.94, high=1.1, near_margin=0.02)#

Classify a per-unit voltage against fixed limits: (colour, label).

A threshold-anchored status scale rather than a continuous colormap: a colormap normalises to whatever range the data spans, so a healthy feeder sitting entirely within 0.97-1.00 pu would still be painted end to end.

Return type:

tuple[str, str]