pub fn new(
        title: impl Display + 'a,
        xname: impl Display + 'a,
        yname: impl Display + 'a,
    ) -> Plotter<'a, X, Y> {
        Plotter {
            title: Box::new(title),
            xname: Box::new(xname),
            yname: Box::new(yname),
            plots: Vec::new(),
            xmarkers: Vec::new(),
            ymarkers: Vec::new(),
            num_css_classes: Some(8),
            preserve_aspect: false,
            xtick_fmt: Box::new(Foo::<_, X>::new(move |a, b, c| b.fmt_tick(a, c))),
            ytick_fmt: Box::new(Foo::<_, Y>::new(move |a, b, c| b.fmt_tick(a, c))),
        }
    }
///
/// Create a plotter with the specified element.
///
/// ```
/// let mut p = poloto::Plotter::new("title", "x", "y");
/// p.line("",[[1,1]]);
/// ```
Create a plotter with the specified element.
Create a plotter with the specified element .
pub fn new(
        title: impl Display + 'a,
        xname: impl Display + 'a,
        yname: impl Display + 'a,
    ) -> Plotter<'a, X, Y> {
        Plotter {
            title: Box::new(title),
            xname: Box::new(xname),
            yname: Box::new(yname),
            plots: Vec::new(),
            xmarkers: Vec::new(),
            ymarkers: Vec::new(),
            num_css_classes: Some(8),
            preserve_aspect: false,
            xtick_fmt: Box::new(Foo::<_, X>::new(move |a, b, c| b.fmt_tick(a, c))),
            ytick_fmt: Box::new(Foo::<_, Y>::new(move |a, b, c| b.fmt_tick(a, c))),
        }
    }
pub fn new ( title : impl Display + ' a , xname : impl Display + ' a , yname : impl Display + ' a , ) -> Plotter < ' a , X , Y > { Plotter { title : Box :: new ( title ) , xname : Box :: new ( xname ) , yname : Box :: new ( yname ) , plots : Vec :: new ( ) , xmarkers : Vec :: new ( ) , ymarkers : Vec :: new ( ) , num_css_classes : Some ( 8 ) , preserve_aspect : false , xtick_fmt : Box :: new ( Foo :: < _ , X > :: new ( move | a , b , c | b . fmt_tick ( a , c ) ) ) , ytick_fmt : Box :: new ( Foo :: < _ , Y > :: new ( move | a , b , c | b . fmt_tick ( a , c ) ) ) , } }
Create a plotter with the specified element.
Create a plotter with the specified element .
title
impl Display + 'a
xname
impl Display + 'a
yname
impl Display + 'a