Skip to main content

Plot

Enum Plot 

Source
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

Source

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.

Source

pub fn bounds(&self) -> Option<((f64, f64), (f64, f64))>

Source

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.

Source

pub fn colorbar_info(&self) -> Option<ColorBarInfo>

Trait Implementations§

Source§

impl From<BandPlot> for Plot

Source§

fn from(p: BandPlot) -> Self

Converts to this type from the input type.
Source§

impl From<BarPlot> for Plot

Source§

fn from(p: BarPlot) -> Self

Converts to this type from the input type.
Source§

impl From<BoxPlot> for Plot

Source§

fn from(p: BoxPlot) -> Self

Converts to this type from the input type.
Source§

impl From<BrickPlot> for Plot

Source§

fn from(p: BrickPlot) -> Self

Converts to this type from the input type.
Source§

impl From<BumpPlot> for Plot

Source§

fn from(p: BumpPlot) -> Self

Converts to this type from the input type.
Source§

impl From<CalendarPlot> for Plot

Source§

fn from(p: CalendarPlot) -> Self

Converts to this type from the input type.
Source§

impl From<CandlestickPlot> for Plot

Source§

fn from(p: CandlestickPlot) -> Self

Converts to this type from the input type.
Source§

impl From<ChordPlot> for Plot

Source§

fn from(p: ChordPlot) -> Self

Converts to this type from the input type.
Source§

impl From<Clustermap> for Plot

Source§

fn from(p: Clustermap) -> Self

Converts to this type from the input type.
Source§

impl From<ContourPlot> for Plot

Source§

fn from(p: ContourPlot) -> Self

Converts to this type from the input type.
Source§

impl From<DensityPlot> for Plot

Source§

fn from(p: DensityPlot) -> Self

Converts to this type from the input type.
Source§

impl From<DicePlot> for Plot

Source§

fn from(p: DicePlot) -> Self

Converts to this type from the input type.
Source§

impl From<DotPlot> for Plot

Source§

fn from(p: DotPlot) -> Self

Converts to this type from the input type.
Source§

impl From<EcdfPlot> for Plot

Source§

fn from(p: EcdfPlot) -> Self

Converts to this type from the input type.
Source§

impl From<ForestPlot> for Plot

Source§

fn from(p: ForestPlot) -> Self

Converts to this type from the input type.
Source§

impl From<FunnelPlot> for Plot

Source§

fn from(p: FunnelPlot) -> Self

Converts to this type from the input type.
Source§

impl From<GanttPlot> for Plot

Source§

fn from(p: GanttPlot) -> Self

Converts to this type from the input type.
Source§

impl From<Heatmap> for Plot

Source§

fn from(p: Heatmap) -> Self

Converts to this type from the input type.
Source§

impl From<HexbinPlot> for Plot

Source§

fn from(p: HexbinPlot) -> Self

Converts to this type from the input type.
Source§

impl From<Histogram> for Plot

Source§

fn from(p: Histogram) -> Self

Converts to this type from the input type.
Source§

impl From<Histogram2D> for Plot

Source§

fn from(p: Histogram2D) -> Self

Converts to this type from the input type.
Source§

impl From<HorizonPlot> for Plot

Source§

fn from(p: HorizonPlot) -> Self

Converts to this type from the input type.
Source§

impl From<JointPlot> for Plot

Source§

fn from(p: JointPlot) -> Self

Converts to this type from the input type.
Source§

impl From<LegendPlot> for Plot

Source§

fn from(p: LegendPlot) -> Self

Converts to this type from the input type.
Source§

impl From<LinePlot> for Plot

Source§

fn from(p: LinePlot) -> Self

Converts to this type from the input type.
Source§

impl From<LollipopPlot> for Plot

Source§

fn from(p: LollipopPlot) -> Self

Converts to this type from the input type.
Source§

impl From<ManhattanPlot> for Plot

Source§

fn from(p: ManhattanPlot) -> Self

Converts to this type from the input type.
Source§

impl From<MosaicPlot> for Plot

Source§

fn from(p: MosaicPlot) -> Self

Converts to this type from the input type.
Source§

impl From<NetworkPlot> for Plot

Source§

fn from(p: NetworkPlot) -> Self

Converts to this type from the input type.
Source§

impl From<ParallelPlot> for Plot

Source§

fn from(p: ParallelPlot) -> Self

Converts to this type from the input type.
Source§

impl From<PhyloTree> for Plot

Source§

fn from(p: PhyloTree) -> Self

Converts to this type from the input type.
Source§

impl From<PiePlot> for Plot

Source§

fn from(p: PiePlot) -> Self

Converts to this type from the input type.
Source§

impl From<PolarPlot> for Plot

Source§

fn from(p: PolarPlot) -> Self

Converts to this type from the input type.
Source§

impl From<PopulationPyramid> for Plot

Source§

fn from(p: PopulationPyramid) -> Self

Converts to this type from the input type.
Source§

impl From<PrPlot> for Plot

Source§

fn from(p: PrPlot) -> Self

Converts to this type from the input type.
Source§

impl From<QQPlot> for Plot

Source§

fn from(p: QQPlot) -> Self

Converts to this type from the input type.
Source§

impl From<RadarPlot> for Plot

Source§

fn from(p: RadarPlot) -> Self

Converts to this type from the input type.
Source§

impl From<RaincloudPlot> for Plot

Source§

fn from(p: RaincloudPlot) -> Self

Converts to this type from the input type.
Source§

impl From<RidgelinePlot> for Plot

Source§

fn from(p: RidgelinePlot) -> Self

Converts to this type from the input type.
Source§

impl From<RocPlot> for Plot

Source§

fn from(p: RocPlot) -> Self

Converts to this type from the input type.
Source§

impl From<RosePlot> for Plot

Source§

fn from(p: RosePlot) -> Self

Converts to this type from the input type.
Source§

impl From<SankeyPlot> for Plot

Source§

fn from(p: SankeyPlot) -> Self

Converts to this type from the input type.
Source§

impl From<Scatter3DPlot> for Plot

Source§

fn from(p: Scatter3DPlot) -> Self

Converts to this type from the input type.
Source§

impl From<ScatterPlot> for Plot

Source§

fn from(p: ScatterPlot) -> Self

Converts to this type from the input type.
Source§

impl From<SeriesPlot> for Plot

Source§

fn from(p: SeriesPlot) -> Self

Converts to this type from the input type.
Source§

impl From<SlopePlot> for Plot

Source§

fn from(p: SlopePlot) -> Self

Converts to this type from the input type.
Source§

impl From<StackedAreaPlot> for Plot

Source§

fn from(p: StackedAreaPlot) -> Self

Converts to this type from the input type.
Source§

impl From<StreamgraphPlot> for Plot

Source§

fn from(p: StreamgraphPlot) -> Self

Converts to this type from the input type.
Source§

impl From<StripPlot> for Plot

Source§

fn from(p: StripPlot) -> Self

Converts to this type from the input type.
Source§

impl From<SunburstPlot> for Plot

Source§

fn from(p: SunburstPlot) -> Self

Converts to this type from the input type.
Source§

impl From<Surface3DPlot> for Plot

Source§

fn from(p: Surface3DPlot) -> Self

Converts to this type from the input type.
Source§

impl From<SurvivalPlot> for Plot

Source§

fn from(p: SurvivalPlot) -> Self

Converts to this type from the input type.
Source§

impl From<SyntenyPlot> for Plot

Source§

fn from(p: SyntenyPlot) -> Self

Converts to this type from the input type.
Source§

impl From<TernaryPlot> for Plot

Source§

fn from(p: TernaryPlot) -> Self

Converts to this type from the input type.
Source§

impl From<TextPlot> for Plot

Source§

fn from(p: TextPlot) -> Self

Converts to this type from the input type.
Source§

impl From<TreemapPlot> for Plot

Source§

fn from(p: TreemapPlot) -> Self

Converts to this type from the input type.
Source§

impl From<UpSetPlot> for Plot

Source§

fn from(p: UpSetPlot) -> Self

Converts to this type from the input type.
Source§

impl From<VennPlot> for Plot

Source§

fn from(p: VennPlot) -> Self

Converts to this type from the input type.
Source§

impl From<ViolinPlot> for Plot

Source§

fn from(p: ViolinPlot) -> Self

Converts to this type from the input type.
Source§

impl From<VolcanoPlot> for Plot

Source§

fn from(p: VolcanoPlot) -> Self

Converts to this type from the input type.
Source§

impl From<WafflePlot> for Plot

Source§

fn from(p: WafflePlot) -> Self

Converts to this type from the input type.
Source§

impl From<WaterfallPlot> for Plot

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> Finish for T

Source§

fn finish(self)

Does nothing but move self, equivalent to drop.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<U, T> ToOwnedObj<U> for T
where U: FromObjRef<T>,

Source§

fn to_owned_obj(&self, data: FontData<'_>) -> U

Convert this type into T, using the provided data to resolve any offsets.
Source§

impl<U, T> ToOwnedTable<U> for T
where U: FromTableRef<T>,

Source§

fn to_owned_table(&self) -> U

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.