coming_path
coming_path
#
coming_path — where the coming conditions travel through a chart, coloured by need.
WIDTH = 7.0
module-attribute
#
The path's width, in points.
Mark = tuple[float, float, str | None]
#
A point on the path, (x, y), with the text written beside it or None.
coming_path(axes, xy, need, marks=())
#
The coming path: grey where covered, orange where needed, its start ringed as now.
A nan point breaks the path (the sun set, say). Each mark is a dot, its
text beside it.
coming = solar_position(site, forecast.times(span=timedelta(hours=24)))
guidance.coming_path(figure.axes, sky_xy(coming), 1.0 - sun.coverage(coming, taken))
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
axes
|
Axes
|
The chart to draw on. |
required |
xy
|
ndarray
|
|
required |
need
|
ndarray
|
0–1 at each point: how much it still needs capturing. |
required |
marks
|
Sequence[Mark]
|
Points to dot along the way, such as every hour. |
()
|