1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
use plotlib::view::View;
use plotlib::repr::Plot;


/// Plottables can be made into plotlib Plots
pub trait Plotable {
    /// Returns a plotlib Plot representing this object
    fn plot(&self) -> Box<dyn View>;

    fn as_plot(&self) -> Plot;
}