pub fn scatter<I>(&mut self, name: impl Display + 'a, plots: I) -> &mut Self
    where
        I: IntoIterator,
        I::IntoIter: Clone + 'a,
        I::Item: Plottable<X, Y>,
    {
        self.plots.push(Plot {
            plot_type: PlotType::Scatter,
            plots: Box::new(PlotStruct::new(
                plots.into_iter().map(|x| x.make_plot()),
                name,
            )),
        });
        self
    }
/// Create a scatter plot from plots, using a SVG path with lines with zero length.
/// Each point can be sized using the stroke width.
/// The path belongs to the CSS classes `poloto_scatter` and `.poloto[N]stroke` css class
/// with the latter class overriding the former.
///
/// ```
/// let data = [[1.0,4.0], [2.0,5.0], [3.0,6.0]];
/// let mut plotter = poloto::plot("title", "x", "y");
/// plotter.scatter("", &data);
/// ```
Create a scatter plot from plots, using a SVG path with lines with zero length.
Each point can be sized using the stroke width.
The path belongs to the CSS classes `poloto_scatter` and `.poloto[N]stroke` css class
with the latter class overriding the former.


Create a scatter plot from plots using a SVG path with lines with zero length . Each point can be sized using the stroke width . The path belongs to the CSS classes ` poloto_scatter ` and ` . poloto [ N ] stroke ` css class with the latter class overriding the former .
pub fn scatter<I>(&mut self, name: impl Display + 'a, plots: I) -> &mut Self
    where
        I: IntoIterator,
        I::IntoIter: Clone + 'a,
        I::Item: Plottable<X, Y>,
    {
        self.plots.push(Plot {
            plot_type: PlotType::Scatter,
            plots: Box::new(PlotStruct::new(
                plots.into_iter().map(|x| x.make_plot()),
                name,
            )),
        });
        self
    }
pub fn scatter < I > ( & mut self , name : impl Display + ' a , plots : I ) -> & mut Self where I : IntoIterator , I :: IntoIter : Clone + ' a , I :: Item : Plottable < X , Y > , { self . plots . push ( Plot { plot_type : PlotType :: Scatter , plots : Box :: new ( PlotStruct :: new ( plots . into_iter ( ) . map ( | x | x . make_plot ( ) ) , name , ) ) , } ) ; self }
Create a scatter plot from plots, using a SVG path with lines with zero length.
Create a scatter plot from plots using a SVG path with lines with zero length .
&mut self
name
impl Display + 'a
plots
I