use build::PlotRes;
use build::Point;
use tagu::attr;
use tagu::elem;
#[cfg(doctest)]
mod test_readme {
macro_rules! external_doc_test {
($x:expr) => {
#[doc = $x]
extern "C" {}
};
}
external_doc_test!(include_str!("../../README.md"));
}
use std::fmt;
pub mod build;
pub mod plotnum;
pub mod render;
pub mod ticks;
pub mod util;
use plotnum::*;
pub mod num;
use tagu::build as hbuild;
use tagu::prelude::*;
pub mod prelude {
pub use super::build::crop::Croppable;
pub use super::build::output_zip::OutputZip;
pub use super::build::PlotIterator;
pub use super::plots;
}
use fmt::Display;
use ticks::*;
use render::*;
mod simple;
#[macro_export]
macro_rules! plots {
($a:expr)=>{
$a
};
( $a:expr,$( $x:expr ),* ) => {
{
let mut a=$a;
$(
let k=$x;
let a={
use $crate::build::PlotIterator;
a.chain(k)
};
)*
a
}
};
}
pub fn frame_build() -> RenderFrame {
frame().build()
}
pub fn frame() -> RenderFrameBuilder {
RenderFrameBuilder::default()
}
#[deprecated(note = "Use poloto::frame().data()")]
pub fn data<X: PlotNum, Y: PlotNum, L: Point<X = X, Y = Y>, J: build::PlotIterator<L = L>>(
plots: J,
) -> Stage1<PlotRes<J::P, L>, X::DefaultTicks, Y::DefaultTicks>
where
X: HasDefaultTicks,
Y: HasDefaultTicks,
{
render::Stage1::from_parts(plots, X::default_ticks(), Y::default_ticks(), frame_build())
}
pub fn header() -> Header<()> {
Header::new()
}