pub enum Plot {
Show 62 variants
Scatter(ScatterPlot),
Line(LinePlot),
Bar(BarPlot),
Histogram(Histogram),
Histogram2d(Histogram2D),
Box(BoxPlot),
Violin(ViolinPlot),
Series(SeriesPlot),
Pie(PiePlot),
Heatmap(Heatmap),
Brick(BrickPlot),
Band(BandPlot),
Waterfall(WaterfallPlot),
Strip(StripPlot),
Volcano(VolcanoPlot),
Manhattan(ManhattanPlot),
DotPlot(DotPlot),
UpSet(UpSetPlot),
StackedArea(StackedAreaPlot),
Candlestick(CandlestickPlot),
Contour(ContourPlot),
Chord(ChordPlot),
Sankey(SankeyPlot),
PhyloTree(PhyloTree),
Synteny(SyntenyPlot),
Density(DensityPlot),
Ridgeline(RidgelinePlot),
Polar(PolarPlot),
Ternary(TernaryPlot),
DicePlot(DicePlot),
Forest(ForestPlot),
Scatter3D(Scatter3DPlot),
Surface3D(Surface3DPlot),
Clustermap(Clustermap),
Joint(JointPlot),
Raincloud(RaincloudPlot),
Lollipop(LollipopPlot),
Survival(SurvivalPlot),
Roc(RocPlot),
Pr(PrPlot),
Slope(SlopePlot),
Venn(VennPlot),
Parallel(ParallelPlot),
Mosaic(MosaicPlot),
Ecdf(EcdfPlot),
QQ(QQPlot),
Network(NetworkPlot),
Streamgraph(StreamgraphPlot),
Radar(RadarPlot),
Hexbin(HexbinPlot),
Treemap(TreemapPlot),
Sunburst(SunburstPlot),
Bump(BumpPlot),
Funnel(FunnelPlot),
Rose(RosePlot),
Calendar(CalendarPlot),
Pyramid(PopulationPyramid),
Waffle(WafflePlot),
Horizon(HorizonPlot),
Gantt(GanttPlot),
Text(TextPlot),
LegendPlot(LegendPlot),
}Variants§
Scatter(ScatterPlot)
Line(LinePlot)
Bar(BarPlot)
Histogram(Histogram)
Histogram2d(Histogram2D)
Box(BoxPlot)
Violin(ViolinPlot)
Series(SeriesPlot)
Pie(PiePlot)
Heatmap(Heatmap)
Brick(BrickPlot)
Band(BandPlot)
Waterfall(WaterfallPlot)
Strip(StripPlot)
Volcano(VolcanoPlot)
Manhattan(ManhattanPlot)
DotPlot(DotPlot)
UpSet(UpSetPlot)
StackedArea(StackedAreaPlot)
Candlestick(CandlestickPlot)
Contour(ContourPlot)
Chord(ChordPlot)
Sankey(SankeyPlot)
PhyloTree(PhyloTree)
Synteny(SyntenyPlot)
Density(DensityPlot)
Ridgeline(RidgelinePlot)
Polar(PolarPlot)
Ternary(TernaryPlot)
DicePlot(DicePlot)
Forest(ForestPlot)
Scatter3D(Scatter3DPlot)
Surface3D(Surface3DPlot)
Clustermap(Clustermap)
Joint(JointPlot)
Raincloud(RaincloudPlot)
Lollipop(LollipopPlot)
Survival(SurvivalPlot)
Roc(RocPlot)
Pr(PrPlot)
Slope(SlopePlot)
Venn(VennPlot)
Parallel(ParallelPlot)
Mosaic(MosaicPlot)
Ecdf(EcdfPlot)
QQ(QQPlot)
Network(NetworkPlot)
Streamgraph(StreamgraphPlot)
Radar(RadarPlot)
Hexbin(HexbinPlot)
Treemap(TreemapPlot)
Sunburst(SunburstPlot)
Bump(BumpPlot)
Funnel(FunnelPlot)
Rose(RosePlot)
Calendar(CalendarPlot)
Pyramid(PopulationPyramid)
Waffle(WafflePlot)
Horizon(HorizonPlot)
Gantt(GanttPlot)
Text(TextPlot)
LegendPlot(LegendPlot)
Implementations§
Source§impl Plot
impl Plot
Sourcepub fn set_color(&mut self, color: &str)
pub fn set_color(&mut self, color: &str)
Set the primary color for single-color plot types. Multi-element plots (Bar, Pie, Brick) and grid plots (Heatmap, Histogram2d) are skipped.
pub fn bounds(&self) -> Option<((f64, f64), (f64, f64))>
Sourcepub fn estimated_primitives(&self) -> usize
pub fn estimated_primitives(&self) -> usize
Rough upper-bound on the number of SVG primitives this plot will emit. Used to pre-allocate the Scene elements vector and avoid repeated reallocs.
pub fn colorbar_info(&self) -> Option<ColorBarInfo>
Trait Implementations§
Source§impl From<CalendarPlot> for Plot
impl From<CalendarPlot> for Plot
Source§fn from(p: CalendarPlot) -> Self
fn from(p: CalendarPlot) -> Self
Converts to this type from the input type.
Source§impl From<CandlestickPlot> for Plot
impl From<CandlestickPlot> for Plot
Source§fn from(p: CandlestickPlot) -> Self
fn from(p: CandlestickPlot) -> Self
Converts to this type from the input type.
Source§impl From<Clustermap> for Plot
impl From<Clustermap> for Plot
Source§fn from(p: Clustermap) -> Self
fn from(p: Clustermap) -> Self
Converts to this type from the input type.
Source§impl From<ContourPlot> for Plot
impl From<ContourPlot> for Plot
Source§fn from(p: ContourPlot) -> Self
fn from(p: ContourPlot) -> Self
Converts to this type from the input type.
Source§impl From<DensityPlot> for Plot
impl From<DensityPlot> for Plot
Source§fn from(p: DensityPlot) -> Self
fn from(p: DensityPlot) -> Self
Converts to this type from the input type.
Source§impl From<ForestPlot> for Plot
impl From<ForestPlot> for Plot
Source§fn from(p: ForestPlot) -> Self
fn from(p: ForestPlot) -> Self
Converts to this type from the input type.
Source§impl From<FunnelPlot> for Plot
impl From<FunnelPlot> for Plot
Source§fn from(p: FunnelPlot) -> Self
fn from(p: FunnelPlot) -> Self
Converts to this type from the input type.
Source§impl From<HexbinPlot> for Plot
impl From<HexbinPlot> for Plot
Source§fn from(p: HexbinPlot) -> Self
fn from(p: HexbinPlot) -> Self
Converts to this type from the input type.
Source§impl From<Histogram2D> for Plot
impl From<Histogram2D> for Plot
Source§fn from(p: Histogram2D) -> Self
fn from(p: Histogram2D) -> Self
Converts to this type from the input type.
Source§impl From<HorizonPlot> for Plot
impl From<HorizonPlot> for Plot
Source§fn from(p: HorizonPlot) -> Self
fn from(p: HorizonPlot) -> Self
Converts to this type from the input type.
Source§impl From<LegendPlot> for Plot
impl From<LegendPlot> for Plot
Source§fn from(p: LegendPlot) -> Self
fn from(p: LegendPlot) -> Self
Converts to this type from the input type.
Source§impl From<LollipopPlot> for Plot
impl From<LollipopPlot> for Plot
Source§fn from(p: LollipopPlot) -> Self
fn from(p: LollipopPlot) -> Self
Converts to this type from the input type.
Source§impl From<ManhattanPlot> for Plot
impl From<ManhattanPlot> for Plot
Source§fn from(p: ManhattanPlot) -> Self
fn from(p: ManhattanPlot) -> Self
Converts to this type from the input type.
Source§impl From<MosaicPlot> for Plot
impl From<MosaicPlot> for Plot
Source§fn from(p: MosaicPlot) -> Self
fn from(p: MosaicPlot) -> Self
Converts to this type from the input type.
Source§impl From<NetworkPlot> for Plot
impl From<NetworkPlot> for Plot
Source§fn from(p: NetworkPlot) -> Self
fn from(p: NetworkPlot) -> Self
Converts to this type from the input type.
Source§impl From<ParallelPlot> for Plot
impl From<ParallelPlot> for Plot
Source§fn from(p: ParallelPlot) -> Self
fn from(p: ParallelPlot) -> Self
Converts to this type from the input type.
Source§impl From<PopulationPyramid> for Plot
impl From<PopulationPyramid> for Plot
Source§fn from(p: PopulationPyramid) -> Self
fn from(p: PopulationPyramid) -> Self
Converts to this type from the input type.
Source§impl From<RaincloudPlot> for Plot
impl From<RaincloudPlot> for Plot
Source§fn from(p: RaincloudPlot) -> Self
fn from(p: RaincloudPlot) -> Self
Converts to this type from the input type.
Source§impl From<RidgelinePlot> for Plot
impl From<RidgelinePlot> for Plot
Source§fn from(p: RidgelinePlot) -> Self
fn from(p: RidgelinePlot) -> Self
Converts to this type from the input type.
Source§impl From<SankeyPlot> for Plot
impl From<SankeyPlot> for Plot
Source§fn from(p: SankeyPlot) -> Self
fn from(p: SankeyPlot) -> Self
Converts to this type from the input type.
Source§impl From<Scatter3DPlot> for Plot
impl From<Scatter3DPlot> for Plot
Source§fn from(p: Scatter3DPlot) -> Self
fn from(p: Scatter3DPlot) -> Self
Converts to this type from the input type.
Source§impl From<ScatterPlot> for Plot
impl From<ScatterPlot> for Plot
Source§fn from(p: ScatterPlot) -> Self
fn from(p: ScatterPlot) -> Self
Converts to this type from the input type.
Source§impl From<SeriesPlot> for Plot
impl From<SeriesPlot> for Plot
Source§fn from(p: SeriesPlot) -> Self
fn from(p: SeriesPlot) -> Self
Converts to this type from the input type.
Source§impl From<StackedAreaPlot> for Plot
impl From<StackedAreaPlot> for Plot
Source§fn from(p: StackedAreaPlot) -> Self
fn from(p: StackedAreaPlot) -> Self
Converts to this type from the input type.
Source§impl From<StreamgraphPlot> for Plot
impl From<StreamgraphPlot> for Plot
Source§fn from(p: StreamgraphPlot) -> Self
fn from(p: StreamgraphPlot) -> Self
Converts to this type from the input type.
Source§impl From<SunburstPlot> for Plot
impl From<SunburstPlot> for Plot
Source§fn from(p: SunburstPlot) -> Self
fn from(p: SunburstPlot) -> Self
Converts to this type from the input type.
Source§impl From<Surface3DPlot> for Plot
impl From<Surface3DPlot> for Plot
Source§fn from(p: Surface3DPlot) -> Self
fn from(p: Surface3DPlot) -> Self
Converts to this type from the input type.
Source§impl From<SurvivalPlot> for Plot
impl From<SurvivalPlot> for Plot
Source§fn from(p: SurvivalPlot) -> Self
fn from(p: SurvivalPlot) -> Self
Converts to this type from the input type.
Source§impl From<SyntenyPlot> for Plot
impl From<SyntenyPlot> for Plot
Source§fn from(p: SyntenyPlot) -> Self
fn from(p: SyntenyPlot) -> Self
Converts to this type from the input type.
Source§impl From<TernaryPlot> for Plot
impl From<TernaryPlot> for Plot
Source§fn from(p: TernaryPlot) -> Self
fn from(p: TernaryPlot) -> Self
Converts to this type from the input type.
Source§impl From<TreemapPlot> for Plot
impl From<TreemapPlot> for Plot
Source§fn from(p: TreemapPlot) -> Self
fn from(p: TreemapPlot) -> Self
Converts to this type from the input type.
Source§impl From<ViolinPlot> for Plot
impl From<ViolinPlot> for Plot
Source§fn from(p: ViolinPlot) -> Self
fn from(p: ViolinPlot) -> Self
Converts to this type from the input type.
Source§impl From<VolcanoPlot> for Plot
impl From<VolcanoPlot> for Plot
Source§fn from(p: VolcanoPlot) -> Self
fn from(p: VolcanoPlot) -> Self
Converts to this type from the input type.
Source§impl From<WafflePlot> for Plot
impl From<WafflePlot> for Plot
Source§fn from(p: WafflePlot) -> Self
fn from(p: WafflePlot) -> Self
Converts to this type from the input type.
Source§impl From<WaterfallPlot> for Plot
impl From<WaterfallPlot> for Plot
Source§fn from(p: WaterfallPlot) -> Self
fn from(p: WaterfallPlot) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Plot
impl !RefUnwindSafe for Plot
impl Send for Plot
impl Sync for Plot
impl Unpin for Plot
impl UnsafeUnpin for Plot
impl !UnwindSafe for Plot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.