Struct plotly::layout::Layout

source ·
pub struct Layout { /* private fields */ }

Implementations§

source§

impl Layout

source

pub fn title(self, value: Title) -> Self

source

pub fn modify_title(value: Title) -> RelayoutLayout

source

pub fn show_legend(self, value: bool) -> Self

source

pub fn modify_show_legend(value: bool) -> RelayoutLayout

source

pub fn legend(self, value: Legend) -> Self

source

pub fn modify_legend(value: Legend) -> RelayoutLayout

source

pub fn margin(self, value: Margin) -> Self

source

pub fn modify_margin(value: Margin) -> RelayoutLayout

source

pub fn auto_size(self, value: bool) -> Self

source

pub fn modify_auto_size(value: bool) -> RelayoutLayout

source

pub fn width(self, value: usize) -> Self

source

pub fn modify_width(value: usize) -> RelayoutLayout

source

pub fn height(self, value: usize) -> Self

source

pub fn modify_height(value: usize) -> RelayoutLayout

source

pub fn font(self, value: Font) -> Self

source

pub fn modify_font(value: Font) -> RelayoutLayout

source

pub fn uniform_text(self, value: UniformText) -> Self

source

pub fn modify_uniform_text(value: UniformText) -> RelayoutLayout

source

pub fn separators(self, value: impl AsRef<str>) -> Self

source

pub fn modify_separators(value: impl AsRef<str>) -> RelayoutLayout

source

pub fn paper_background_color(self, value: impl Color) -> Self

source

pub fn modify_paper_background_color(value: impl Color) -> RelayoutLayout

source

pub fn plot_background_color(self, value: impl Color) -> Self

source

pub fn modify_plot_background_color(value: impl Color) -> RelayoutLayout

source

pub fn color_scale(self, value: LayoutColorScale) -> Self

source

pub fn modify_color_scale(value: LayoutColorScale) -> RelayoutLayout

source

pub fn colorway(self, value: Vec<impl Color>) -> Self

source

pub fn modify_colorway(value: Vec<impl Color>) -> RelayoutLayout

source

pub fn color_axis(self, value: ColorAxis) -> Self

source

pub fn modify_color_axis(value: ColorAxis) -> RelayoutLayout

source

pub fn mode_bar(self, value: ModeBar) -> Self

source

pub fn modify_mode_bar(value: ModeBar) -> RelayoutLayout

source

pub fn hover_mode(self, value: HoverMode) -> Self

Determines the mode of hover interactions. If “closest”, a single hoverlabel will appear for the “closest” point within the hoverdistance. If “x” (or “y”), multiple hoverlabels will appear for multiple points at the “closest” x- (or y-) coordinate within the hoverdistance, with the caveat that no more than one hoverlabel will appear per trace. If “x unified” (or “y unified”), a single hoverlabel will appear multiple points at the closest x- (or y-) coordinate within the hoverdistance with the caveat that no more than one hoverlabel will appear per trace. In this mode, spikelines are enabled by default perpendicular to the specified axis. If false, hover interactions are disabled. If clickmode includes the “select” flag, hovermode defaults to “closest”. If clickmode lacks the “select” flag, it defaults to “x” or “y” (depending on the trace’s orientation value) for plots based on cartesian coordinates. For anything else the default value is “closest”.

source

pub fn modify_hover_mode(value: HoverMode) -> RelayoutLayout

source

pub fn click_mode(self, value: ClickMode) -> Self

source

pub fn modify_click_mode(value: ClickMode) -> RelayoutLayout

source

pub fn drag_mode(self, value: DragMode) -> Self

source

pub fn modify_drag_mode(value: DragMode) -> RelayoutLayout

source

pub fn select_direction(self, value: SelectDirection) -> Self

source

pub fn modify_select_direction(value: SelectDirection) -> RelayoutLayout

source

pub fn hover_distance(self, value: i32) -> Self

source

pub fn modify_hover_distance(value: i32) -> RelayoutLayout

source

pub fn spike_distance(self, value: i32) -> Self

source

pub fn modify_spike_distance(value: i32) -> RelayoutLayout

source

pub fn hover_label(self, value: Label) -> Self

source

pub fn modify_hover_label(value: Label) -> RelayoutLayout

source

pub fn grid(self, value: LayoutGrid) -> Self

source

pub fn modify_grid(value: LayoutGrid) -> RelayoutLayout

source

pub fn calendar(self, value: Calendar) -> Self

source

pub fn modify_calendar(value: Calendar) -> RelayoutLayout

source

pub fn x_axis(self, value: Axis) -> Self

source

pub fn modify_x_axis(value: Axis) -> RelayoutLayout

source

pub fn y_axis(self, value: Axis) -> Self

source

pub fn modify_y_axis(value: Axis) -> RelayoutLayout

source

pub fn z_axis(self, value: Axis) -> Self

source

pub fn modify_z_axis(value: Axis) -> RelayoutLayout

source

pub fn x_axis2(self, value: Axis) -> Self

source

pub fn modify_x_axis2(value: Axis) -> RelayoutLayout

source

pub fn y_axis2(self, value: Axis) -> Self

source

pub fn modify_y_axis2(value: Axis) -> RelayoutLayout

source

pub fn z_axis2(self, value: Axis) -> Self

source

pub fn modify_z_axis2(value: Axis) -> RelayoutLayout

source

pub fn x_axis3(self, value: Axis) -> Self

source

pub fn modify_x_axis3(value: Axis) -> RelayoutLayout

source

pub fn y_axis3(self, value: Axis) -> Self

source

pub fn modify_y_axis3(value: Axis) -> RelayoutLayout

source

pub fn z_axis3(self, value: Axis) -> Self

source

pub fn modify_z_axis3(value: Axis) -> RelayoutLayout

source

pub fn x_axis4(self, value: Axis) -> Self

source

pub fn modify_x_axis4(value: Axis) -> RelayoutLayout

source

pub fn y_axis4(self, value: Axis) -> Self

source

pub fn modify_y_axis4(value: Axis) -> RelayoutLayout

source

pub fn z_axis4(self, value: Axis) -> Self

source

pub fn modify_z_axis4(value: Axis) -> RelayoutLayout

source

pub fn x_axis5(self, value: Axis) -> Self

source

pub fn modify_x_axis5(value: Axis) -> RelayoutLayout

source

pub fn y_axis5(self, value: Axis) -> Self

source

pub fn modify_y_axis5(value: Axis) -> RelayoutLayout

source

pub fn z_axis5(self, value: Axis) -> Self

source

pub fn modify_z_axis5(value: Axis) -> RelayoutLayout

source

pub fn x_axis6(self, value: Axis) -> Self

source

pub fn modify_x_axis6(value: Axis) -> RelayoutLayout

source

pub fn y_axis6(self, value: Axis) -> Self

source

pub fn modify_y_axis6(value: Axis) -> RelayoutLayout

source

pub fn z_axis6(self, value: Axis) -> Self

source

pub fn modify_z_axis6(value: Axis) -> RelayoutLayout

source

pub fn x_axis7(self, value: Axis) -> Self

source

pub fn modify_x_axis7(value: Axis) -> RelayoutLayout

source

pub fn y_axis7(self, value: Axis) -> Self

source

pub fn modify_y_axis7(value: Axis) -> RelayoutLayout

source

pub fn z_axis7(self, value: Axis) -> Self

source

pub fn modify_z_axis7(value: Axis) -> RelayoutLayout

source

pub fn x_axis8(self, value: Axis) -> Self

source

pub fn modify_x_axis8(value: Axis) -> RelayoutLayout

source

pub fn y_axis8(self, value: Axis) -> Self

source

pub fn modify_y_axis8(value: Axis) -> RelayoutLayout

source

pub fn z_axis8(self, value: Axis) -> Self

source

pub fn modify_z_axis8(value: Axis) -> RelayoutLayout

source

pub fn annotations(self, value: Vec<Annotation>) -> Self

source

pub fn modify_annotations(value: Vec<Annotation>) -> RelayoutLayout

source

pub fn shapes(self, value: Vec<Shape>) -> Self

source

pub fn modify_shapes(value: Vec<Shape>) -> RelayoutLayout

source

pub fn new_shape(self, value: NewShape) -> Self

source

pub fn modify_new_shape(value: NewShape) -> RelayoutLayout

source

pub fn active_shape(self, value: ActiveShape) -> Self

source

pub fn modify_active_shape(value: ActiveShape) -> RelayoutLayout

source

pub fn box_mode(self, value: BoxMode) -> Self

source

pub fn modify_box_mode(value: BoxMode) -> RelayoutLayout

source

pub fn box_gap(self, value: f64) -> Self

source

pub fn modify_box_gap(value: f64) -> RelayoutLayout

source

pub fn box_group_gap(self, value: f64) -> Self

source

pub fn modify_box_group_gap(value: f64) -> RelayoutLayout

source

pub fn bar_mode(self, value: BarMode) -> Self

source

pub fn modify_bar_mode(value: BarMode) -> RelayoutLayout

source

pub fn bar_norm(self, value: BarNorm) -> Self

source

pub fn modify_bar_norm(value: BarNorm) -> RelayoutLayout

source

pub fn bar_gap(self, value: f64) -> Self

source

pub fn modify_bar_gap(value: f64) -> RelayoutLayout

source

pub fn bar_group_gap(self, value: f64) -> Self

source

pub fn modify_bar_group_gap(value: f64) -> RelayoutLayout

source

pub fn violin_mode(self, value: ViolinMode) -> Self

source

pub fn modify_violin_mode(value: ViolinMode) -> RelayoutLayout

source

pub fn violin_gap(self, value: f64) -> Self

source

pub fn modify_violin_gap(value: f64) -> RelayoutLayout

source

pub fn violin_group_gap(self, value: f64) -> Self

source

pub fn modify_violin_group_gap(value: f64) -> RelayoutLayout

source

pub fn waterfall_mode(self, value: WaterfallMode) -> Self

source

pub fn modify_waterfall_mode(value: WaterfallMode) -> RelayoutLayout

source

pub fn waterfall_gap(self, value: f64) -> Self

source

pub fn modify_waterfall_gap(value: f64) -> RelayoutLayout

source

pub fn waterfall_group_gap(self, value: f64) -> Self

source

pub fn modify_waterfall_group_gap(value: f64) -> RelayoutLayout

source

pub fn pie_colorway(self, value: Vec<impl Color>) -> Self

source

pub fn modify_pie_colorway(value: Vec<impl Color>) -> RelayoutLayout

source

pub fn extend_pie_colors(self, value: bool) -> Self

source

pub fn modify_extend_pie_colors(value: bool) -> RelayoutLayout

source

pub fn sunburst_colorway(self, value: Vec<impl Color>) -> Self

source

pub fn modify_sunburst_colorway(value: Vec<impl Color>) -> RelayoutLayout

source

pub fn extend_sunburst_colors(self, value: bool) -> Self

source

pub fn modify_extend_sunburst_colors(value: bool) -> RelayoutLayout

source

pub fn mapbox(self, value: Mapbox) -> Self

source

pub fn modify_mapbox(value: Mapbox) -> RelayoutLayout

source

pub fn update_menus(self, value: Vec<UpdateMenu>) -> Self

source

pub fn modify_update_menus(value: Vec<UpdateMenu>) -> RelayoutLayout

source§

impl Layout

source

pub fn new() -> Self

source

pub fn to_json(&self) -> String

source

pub fn add_annotation(&mut self, annotation: Annotation)

source

pub fn add_shape(&mut self, shape: Shape)

source

pub fn template<T>(self, template: T) -> Layoutwhere T: Into<Cow<'static, Template>>,

Trait Implementations§

source§

impl Clone for Layout

source§

fn clone(&self) -> Layout

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Layout

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Layout

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serialize for Layout

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for Layout

§

impl Send for Layout

§

impl Sync for Layout

§

impl Unpin for Layout

§

impl !UnwindSafe for Layout

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere 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<T> Serialize for Twhere T: Serialize + ?Sized,

source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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 Twhere U: TryFrom<T>,

§

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.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V