Struct plotly::layout::Layout[][src]

pub struct Layout { /* fields omitted */ }

Implementations

impl Layout[src]

pub fn new() -> Layout[src]

pub fn title(self, title: Title) -> Layout[src]

pub fn show_legend(self, show_legend: bool) -> Layout[src]

pub fn legend(self, legend: Legend) -> Layout[src]

pub fn margin(self, margin: Margin) -> Layout[src]

pub fn auto_size(self, auto_size: bool) -> Layout[src]

pub fn width(self, width: usize) -> Layout[src]

pub fn height(self, height: usize) -> Layout[src]

pub fn font(self, font: Font) -> Layout[src]

pub fn uniform_text(self, uniform_text: UniformText) -> Layout[src]

pub fn separators(self, separators: &str) -> Layout[src]

pub fn paper_background_color<C: Color>(
    self,
    paper_background_color: C
) -> Layout
[src]

pub fn plot_background_color<C: Color>(self, plot_background_color: C) -> Layout[src]

pub fn color_scale(self, color_scale: LayoutColorScale) -> Layout[src]

pub fn colorway<C: Color>(self, colorway: Vec<C>) -> Layout[src]

pub fn color_axis(self, color_axis: ColorAxis) -> Layout[src]

pub fn mode_bar(self, mode_bar: ModeBar) -> Layout[src]

pub fn hover_mode(self, hover_mode: HoverMode) -> Layout[src]

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

pub fn click_mode(self, click_mode: &str) -> Layout[src]

pub fn drag_mode(self, drag_mode: &str) -> Layout[src]

pub fn select_direction(self, select_direction: &str) -> Layout[src]

pub fn hover_distance(self, hover_distance: i32) -> Layout[src]

pub fn spike_distance(self, spike_distance: i32) -> Layout[src]

pub fn hover_label(self, hover_label: Label) -> Layout[src]

pub fn grid(self, grid: LayoutGrid) -> Layout[src]

pub fn calendar(self, calendar: Calendar) -> Layout[src]

pub fn x_axis(self, xaxis: Axis) -> Layout[src]

pub fn y_axis(self, yaxis: Axis) -> Layout[src]

pub fn x_axis2(self, xaxis: Axis) -> Layout[src]

pub fn y_axis2(self, yaxis: Axis) -> Layout[src]

pub fn x_axis3(self, xaxis: Axis) -> Layout[src]

pub fn y_axis3(self, yaxis: Axis) -> Layout[src]

pub fn x_axis4(self, xaxis: Axis) -> Layout[src]

pub fn y_axis4(self, yaxis: Axis) -> Layout[src]

pub fn x_axis5(self, xaxis: Axis) -> Layout[src]

pub fn y_axis5(self, yaxis: Axis) -> Layout[src]

pub fn x_axis6(self, xaxis: Axis) -> Layout[src]

pub fn y_axis6(self, yaxis: Axis) -> Layout[src]

pub fn x_axis7(self, xaxis: Axis) -> Layout[src]

pub fn y_axis7(self, yaxis: Axis) -> Layout[src]

pub fn x_axis8(self, xaxis: Axis) -> Layout[src]

pub fn y_axis8(self, yaxis: Axis) -> Layout[src]

pub fn annotations(self, annotations: Vec<Annotation>) -> Layout[src]

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

pub fn shapes(self, shapes: Vec<Shape>) -> Layout[src]

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

pub fn new_shape(self, new_shape: NewShape) -> Layout[src]

pub fn active_shape(self, active_shape: ActiveShape) -> Layout[src]

pub fn template(self, template: &str) -> Layout[src]

pub fn box_mode(self, box_mode: BoxMode) -> Layout[src]

pub fn box_gap(self, box_gap: f64) -> Layout[src]

pub fn box_group_gap(self, box_group_gap: f64) -> Layout[src]

pub fn bar_mode(self, bar_mode: BarMode) -> Layout[src]

pub fn bar_norm(self, bar_norm: BarNorm) -> Layout[src]

pub fn bar_gap(self, bar_gap: f64) -> Layout[src]

pub fn bar_group_gap(self, bar_group_gap: f64) -> Layout[src]

pub fn violin_mode(self, violin_mode: ViolinMode) -> Layout[src]

pub fn violin_gap(self, violin_gap: f64) -> Layout[src]

pub fn violin_group_gap(self, violin_group_gap: f64) -> Layout[src]

pub fn waterfall_mode(self, waterfall_mode: WaterfallMode) -> Layout[src]

pub fn waterfall_gap(self, waterfall_gap: f64) -> Layout[src]

pub fn waterfall_group_gap(self, waterfall_group_gap: f64) -> Layout[src]

pub fn pie_colorway<C: Color>(self, pie_colorway: Vec<C>) -> Layout[src]

pub fn extend_pie_colors(self, extend_pie_colors: bool) -> Layout[src]

pub fn sunburst_colorway<C: Color>(self, sunburst_colorway: Vec<C>) -> Layout[src]

pub fn extend_sunburst_colors(self, extend_sunburst_colors: bool) -> Layout[src]

Trait Implementations

impl Debug for Layout[src]

impl Default for Layout[src]

impl Serialize for Layout[src]

impl Trace for Layout[src]

Auto Trait Implementations

impl RefUnwindSafe for Layout[src]

impl Send for Layout[src]

impl Sync for Layout[src]

impl Unpin for Layout[src]

impl UnwindSafe for Layout[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]