Struct egui::widgets::plot::Values   [−][src]
pub struct Values { /* fields omitted */ }Implementations
pub fn from_explicit_callback(
    function: impl Fn(f64) -> f64 + 'static, 
    x_range: impl RangeBounds<f64>, 
    points: usize
) -> Self
pub fn from_explicit_callback(
    function: impl Fn(f64) -> f64 + 'static, 
    x_range: impl RangeBounds<f64>, 
    points: usize
) -> Self
Draw a line based on a function y=f(x), a range (which can be infinite) for x and the number of points.
Draw a line based on a function (x,y)=f(t), a range for t and the number of points.
The range may be specified as start..end or as start..=end.
From a series of y-values. The x-values will be the indices of these values
