pub struct HistogramPlotOptions {
pub width: u32,
pub height: u32,
pub padding: u32,
pub background: Srgba8,
pub axis: Srgba8,
pub log_scale: bool,
}Available on crate feature
debug-window only.Expand description
Frame-level configuration for render_histogram_layers.
Holds everything that is shared between all layers in a single chart: the canvas size, padding, background colour, axis colour, and whether the y-axis is log-scaled.
Per-layer properties (bin counts and bar colour) live on
HistogramLayer.
Fields§
§width: u32Width of the rendered chart in pixels.
height: u32Height of the rendered chart in pixels.
padding: u32Padding around the plot area, in pixels.
background: Srgba8Background fill colour. Use a translucent value if you intend to composite the chart over something else later — the renderer will honour the alpha channel verbatim.
axis: Srgba8Axis / baseline colour.
log_scale: boolIf true, every layer’s bar heights are scaled by
log10(1 + count). Useful for natural images where a few
bins dominate.
Trait Implementations§
Source§impl Clone for HistogramPlotOptions
impl Clone for HistogramPlotOptions
Source§fn clone(&self) -> HistogramPlotOptions
fn clone(&self) -> HistogramPlotOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HistogramPlotOptions
Source§impl Debug for HistogramPlotOptions
impl Debug for HistogramPlotOptions
Auto Trait Implementations§
impl Freeze for HistogramPlotOptions
impl RefUnwindSafe for HistogramPlotOptions
impl Send for HistogramPlotOptions
impl Sync for HistogramPlotOptions
impl Unpin for HistogramPlotOptions
impl UnsafeUnpin for HistogramPlotOptions
impl UnwindSafe for HistogramPlotOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ConvertPixelExt for T
impl<T> ConvertPixelExt for T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> FromLinear<T> for T
impl<T> FromLinear<T> for T
Source§fn from_linear(acc: T) -> T
fn from_linear(acc: T) -> T
Converts a linear-space accumulator value back to this pixel type, applying rounding and clamping. Read more