pub fn simple_theme<T: std::fmt::Write, X: PlotNum, Y: PlotNum>(
    mut a: T,
    mut p: Plotter<X, Y>,
) -> std::fmt::Result {
    write!(
        &mut a,
        "{}<style>{}</style>{}{}",
        SVG_HEADER,
        STYLE_CONFIG_LIGHT_DEFAULT,
        disp(|a| p.render(a)),
        SVG_END
    )
}
///
/// Make a graph with a svg tag and a simple css theme.
///
/// ```
/// let data = [[1.0,4.0], [2.0,5.0], [3.0,6.0]];
/// let mut plotter = poloto::plot("title", "x", "y");
/// plotter.line("", &data);
/// let mut k=String::new();
/// poloto::simple_theme(&mut k,plotter);
/// ```
Make a graph with a svg tag and a simple css theme.
Make a graph with a svg tag and a simple css theme .
pub fn simple_theme<T: std::fmt::Write, X: PlotNum, Y: PlotNum>(
    mut a: T,
    mut p: Plotter<X, Y>,
) -> std::fmt::Result {
    write!(
        &mut a,
        "{}<style>{}</style>{}{}",
        SVG_HEADER,
        STYLE_CONFIG_LIGHT_DEFAULT,
        disp(|a| p.render(a)),
        SVG_END
    )
}
pub fn simple_theme < T : std :: fmt :: Write , X : PlotNum , Y : PlotNum > ( mut a : T , mut p : Plotter < X , Y > , ) -> std :: fmt :: Result { write ! ( mut a " " SVG_HEADER STYLE_CONFIG_LIGHT_DEFAULT disp ( a p render ( a ) ) SVG_END ) }
Make a graph with a svg tag and a simple css theme.
Make a graph with a svg tag and a simple css theme .
a
T
p
Plotter<X, Y>