pub struct BuiltPlot {Show 16 fields
pub layers: Vec<BuiltLayer>,
pub scales: ScaleSet,
pub coord: Box<dyn Coord>,
pub theme: Theme,
pub labels: Labels,
pub facet: Facet,
pub facet_axes: FacetAxes,
pub panels: Vec<Panel>,
pub panels_data: Vec<Vec<DataFrame>>,
pub annotations: Vec<Annotation>,
pub guide_legend: GuideLegend,
pub suppressed_aes: HashSet<Aesthetic>,
pub panel_scales: Vec<ScaleSet>,
pub warnings: Vec<String>,
pub clip: bool,
pub svg_classes: bool,
/* private fields */
}Expand description
A fully built plot ready for rendering.
Fields§
§layers: Vec<BuiltLayer>§scales: ScaleSet§coord: Box<dyn Coord>§theme: Theme§labels: Labels§facet: Facet§facet_axes: FacetAxesWhich facet panels get axes (#412).
panels: Vec<Panel>§panels_data: Vec<Vec<DataFrame>>Per-panel layer data. panels_data[panel_idx][layer_idx] = data for that panel+layer.
annotations: Vec<Annotation>§guide_legend: GuideLegend§suppressed_aes: HashSet<Aesthetic>Aesthetics suppressed from the legend (all layers with that aes set show_legend=false).
panel_scales: Vec<ScaleSet>Per-panel scale sets for free facets. Empty when FacetScales::Fixed.
warnings: Vec<String>Non-fatal problems found while building (ggplot2’s warnings), e.g.
“geom_point: removed 2 rows containing non-finite values”. See
BuiltPlot::warnings.
clip: boolClip the data layers to the panel (clip = "on", #411).
svg_classes: boolSemantic CSS classes on the SVG’s non-data elements (#465).
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BuiltPlot
impl !UnwindSafe for BuiltPlot
impl Freeze for BuiltPlot
impl Send for BuiltPlot
impl Sync for BuiltPlot
impl Unpin for BuiltPlot
impl UnsafeUnpin for BuiltPlot
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more