Expand description
Programmatic plot() view commands — the plot
counterpart of crate::viewport::ViewportRequest.
Apps accumulate requests from event handlers (a “Fit” toolbar button,
a “last 60 s” preset) and hand them to the host once per frame via
crate::event::App::drain_plot_requests; each is consumed during
UiState::prepare_plots by the plot whose
.key(...) it names, where the live data bounds are known. This is
the app-side write half of the view API —
plot_view_by_key is the
read half — so build / on_event code can drive the view without
&mut UiState.
Enums§
- Plot
Request - What an app produces to drive a
plot()’s view programmatically. Push once per build viaApp::drain_plot_requests; unmatched requests (the keyed plot wasn’t in the tree this frame) are dropped, likecrate::viewport::ViewportRequests.