need_timeline
need_timeline
#
need_timeline — how much each moment still needs capturing, by the clock.
PEAK_PROMINENCE = 0.1
module-attribute
#
How far a peak must rise above its surroundings to be marked.
PEAK_SPACING = timedelta(minutes=20)
module-attribute
#
The closest two marked peaks may stand.
need_timeline(axes, instants, need, now=None)
#
need by clock time, its peaks marked with their time, the moments before now faded.
Times read in the zone the instants carry.
day = cgr.scheduling.forecast.daylight(site, now)
suns = cgr.scheduling.forecast.solar_position(site, day)
guidance.need_timeline(figure.axes, list(day), 1.0 - shadow.coverage(suns, taken), now=now)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
axes
|
Axes
|
The chart to draw on. |
required |
instants
|
Sequence[datetime]
|
Evenly spaced aware instants, in order. |
required |
need
|
ndarray
|
0–1 at each instant. |
required |
now
|
datetime | None
|
The present, when it falls among |
None
|