smo

Struct Layout

Source
pub struct Layout { /* private fields */ }

Implementations§

Source§

impl Layout

Source

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

Source

pub fn modify_title(value: Title) -> RelayoutLayout

Source

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

Source

pub fn modify_show_legend(value: bool) -> RelayoutLayout

Source

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

Source

pub fn modify_legend(value: Legend) -> RelayoutLayout

Source

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

Source

pub fn modify_margin(value: Margin) -> RelayoutLayout

Source

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

Source

pub fn modify_auto_size(value: bool) -> RelayoutLayout

Source

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

Source

pub fn modify_width(value: usize) -> RelayoutLayout

Source

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

Source

pub fn modify_height(value: usize) -> RelayoutLayout

Source

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

Source

pub fn modify_font(value: Font) -> RelayoutLayout

Source

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

Source

pub fn modify_uniform_text(value: UniformText) -> RelayoutLayout

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

pub fn modify_color_scale(value: LayoutColorScale) -> RelayoutLayout

Source

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

Source

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

Source

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

Source

pub fn modify_color_axis(value: ColorAxis) -> RelayoutLayout

Source

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

Source

pub fn modify_mode_bar(value: ModeBar) -> RelayoutLayout

Source

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

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) -> Layout

Source

pub fn modify_click_mode(value: ClickMode) -> RelayoutLayout

Source

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

Source

pub fn modify_drag_mode(value: DragMode) -> RelayoutLayout

Source

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

Source

pub fn modify_select_direction(value: SelectDirection) -> RelayoutLayout

Source

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

Source

pub fn modify_hover_distance(value: i32) -> RelayoutLayout

Source

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

Source

pub fn modify_spike_distance(value: i32) -> RelayoutLayout

Source

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

Source

pub fn modify_hover_label(value: Label) -> RelayoutLayout

Source

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

Source

pub fn modify_grid(value: LayoutGrid) -> RelayoutLayout

Source

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

Source

pub fn modify_calendar(value: Calendar) -> RelayoutLayout

Source

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

Source

pub fn modify_x_axis(value: Axis) -> RelayoutLayout

Source

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

Source

pub fn modify_y_axis(value: Axis) -> RelayoutLayout

Source

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

Source

pub fn modify_z_axis(value: Axis) -> RelayoutLayout

Source

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

Source

pub fn modify_x_axis2(value: Axis) -> RelayoutLayout

Source

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

Source

pub fn modify_y_axis2(value: Axis) -> RelayoutLayout

Source

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

Source

pub fn modify_z_axis2(value: Axis) -> RelayoutLayout

Source

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

Source

pub fn modify_x_axis3(value: Axis) -> RelayoutLayout

Source

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

Source

pub fn modify_y_axis3(value: Axis) -> RelayoutLayout

Source

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

Source

pub fn modify_z_axis3(value: Axis) -> RelayoutLayout

Source

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

Source

pub fn modify_x_axis4(value: Axis) -> RelayoutLayout

Source

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

Source

pub fn modify_y_axis4(value: Axis) -> RelayoutLayout

Source

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

Source

pub fn modify_z_axis4(value: Axis) -> RelayoutLayout

Source

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

Source

pub fn modify_x_axis5(value: Axis) -> RelayoutLayout

Source

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

Source

pub fn modify_y_axis5(value: Axis) -> RelayoutLayout

Source

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

Source

pub fn modify_z_axis5(value: Axis) -> RelayoutLayout

Source

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

Source

pub fn modify_x_axis6(value: Axis) -> RelayoutLayout

Source

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

Source

pub fn modify_y_axis6(value: Axis) -> RelayoutLayout

Source

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

Source

pub fn modify_z_axis6(value: Axis) -> RelayoutLayout

Source

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

Source

pub fn modify_x_axis7(value: Axis) -> RelayoutLayout

Source

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

Source

pub fn modify_y_axis7(value: Axis) -> RelayoutLayout

Source

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

Source

pub fn modify_z_axis7(value: Axis) -> RelayoutLayout

Source

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

Source

pub fn modify_x_axis8(value: Axis) -> RelayoutLayout

Source

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

Source

pub fn modify_y_axis8(value: Axis) -> RelayoutLayout

Source

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

Source

pub fn modify_z_axis8(value: Axis) -> RelayoutLayout

Source

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

Source

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

Source

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

Source

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

Source

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

Source

pub fn modify_new_shape(value: NewShape) -> RelayoutLayout

Source

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

Source

pub fn modify_active_shape(value: ActiveShape) -> RelayoutLayout

Source

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

Source

pub fn modify_box_mode(value: BoxMode) -> RelayoutLayout

Source

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

Source

pub fn modify_box_gap(value: f64) -> RelayoutLayout

Source

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

Source

pub fn modify_box_group_gap(value: f64) -> RelayoutLayout

Source

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

Source

pub fn modify_bar_mode(value: BarMode) -> RelayoutLayout

Source

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

Source

pub fn modify_bar_norm(value: BarNorm) -> RelayoutLayout

Source

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

Source

pub fn modify_bar_gap(value: f64) -> RelayoutLayout

Source

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

Source

pub fn modify_bar_group_gap(value: f64) -> RelayoutLayout

Source

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

Source

pub fn modify_violin_mode(value: ViolinMode) -> RelayoutLayout

Source

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

Source

pub fn modify_violin_gap(value: f64) -> RelayoutLayout

Source

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

Source

pub fn modify_violin_group_gap(value: f64) -> RelayoutLayout

Source

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

Source

pub fn modify_waterfall_mode(value: WaterfallMode) -> RelayoutLayout

Source

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

Source

pub fn modify_waterfall_gap(value: f64) -> RelayoutLayout

Source

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

Source

pub fn modify_waterfall_group_gap(value: f64) -> RelayoutLayout

Source

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

Source

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

Source

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

Source

pub fn modify_extend_pie_colors(value: bool) -> RelayoutLayout

Source

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

Source

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

Source

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

Source

pub fn modify_extend_sunburst_colors(value: bool) -> RelayoutLayout

Source

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

Source

pub fn modify_mapbox(value: Mapbox) -> RelayoutLayout

Source

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

Source

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

Source§

impl Layout

Source

pub fn new() -> Layout

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) -> Layout
where 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<(), Error>

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

impl Default for Layout

Source§

fn default() -> Layout

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

impl Serialize for Layout

Source§

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

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Layout

§

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 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> DynClone for T
where 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 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<T> Serialize for T
where T: Serialize + ?Sized,

Source§

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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

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

Source§

fn vzip(self) -> V