Struct plotly_fork::traces::surface::Surface
source · pub struct Surface<X, Y, Z>{ /* private fields */ }
Expand description
Construct a surface trace.
Examples
use plotly::Surface;
let trace = Surface::new(vec![vec![0, 1]]).x(vec![1, 2]).y(vec![2, 3]);
let expected = serde_json::json!({
"type": "surface",
"x": [1, 2],
"y": [2, 3],
"z": [[0, 1]],
});
assert_eq!(serde_json::to_value(trace).unwrap(), expected);
Implementations§
source§impl<X, Y, Z> Surface<X, Y, Z>
impl<X, Y, Z> Surface<X, Y, Z>
pub fn x(self, value: Vec<X>) -> Box<Self>
sourcepub fn modify_all_x(value: Vec<X>) -> RestyleSurface<X, Y, Z>
pub fn modify_all_x(value: Vec<X>) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_x(values: Vec<Vec<X>>) -> RestyleSurface<X, Y, Z>
pub fn modify_x(values: Vec<Vec<X>>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn y(self, value: Vec<Y>) -> Box<Self>
sourcepub fn modify_all_y(value: Vec<Y>) -> RestyleSurface<X, Y, Z>
pub fn modify_all_y(value: Vec<Y>) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_y(values: Vec<Vec<Y>>) -> RestyleSurface<X, Y, Z>
pub fn modify_y(values: Vec<Vec<Y>>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn z(self, value: Vec<Vec<Z>>) -> Box<Self>
sourcepub fn modify_all_z(value: Vec<Vec<Z>>) -> RestyleSurface<X, Y, Z>
pub fn modify_all_z(value: Vec<Vec<Z>>) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_z(values: Vec<Vec<Vec<Z>>>) -> RestyleSurface<X, Y, Z>
pub fn modify_z(values: Vec<Vec<Vec<Z>>>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn auto_color_scale(self, value: bool) -> Box<Self>
sourcepub fn modify_all_auto_color_scale(value: bool) -> RestyleSurface<X, Y, Z>
pub fn modify_all_auto_color_scale(value: bool) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_auto_color_scale(values: Vec<bool>) -> RestyleSurface<X, Y, Z>
pub fn modify_auto_color_scale(values: Vec<bool>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn cauto(self, value: bool) -> Box<Self>
sourcepub fn modify_all_cauto(value: bool) -> RestyleSurface<X, Y, Z>
pub fn modify_all_cauto(value: bool) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_cauto(values: Vec<bool>) -> RestyleSurface<X, Y, Z>
pub fn modify_cauto(values: Vec<bool>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn cmax(self, value: f64) -> Box<Self>
sourcepub fn modify_all_cmax(value: f64) -> RestyleSurface<X, Y, Z>
pub fn modify_all_cmax(value: f64) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_cmax(values: Vec<f64>) -> RestyleSurface<X, Y, Z>
pub fn modify_cmax(values: Vec<f64>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn cmid(self, value: f64) -> Box<Self>
sourcepub fn modify_all_cmid(value: f64) -> RestyleSurface<X, Y, Z>
pub fn modify_all_cmid(value: f64) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_cmid(values: Vec<f64>) -> RestyleSurface<X, Y, Z>
pub fn modify_cmid(values: Vec<f64>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn cmin(self, value: f64) -> Box<Self>
sourcepub fn modify_all_cmin(value: f64) -> RestyleSurface<X, Y, Z>
pub fn modify_all_cmin(value: f64) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_cmin(values: Vec<f64>) -> RestyleSurface<X, Y, Z>
pub fn modify_cmin(values: Vec<f64>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn color_bar(self, value: ColorBar) -> Box<Self>
sourcepub fn modify_all_color_bar(value: ColorBar) -> RestyleSurface<X, Y, Z>
pub fn modify_all_color_bar(value: ColorBar) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_color_bar(values: Vec<ColorBar>) -> RestyleSurface<X, Y, Z>
pub fn modify_color_bar(values: Vec<ColorBar>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn color_scale(self, value: ColorScale) -> Box<Self>
sourcepub fn modify_all_color_scale(value: ColorScale) -> RestyleSurface<X, Y, Z>
pub fn modify_all_color_scale(value: ColorScale) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_color_scale(values: Vec<ColorScale>) -> RestyleSurface<X, Y, Z>
pub fn modify_color_scale(values: Vec<ColorScale>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn connect_gaps(self, value: bool) -> Box<Self>
sourcepub fn modify_all_connect_gaps(value: bool) -> RestyleSurface<X, Y, Z>
pub fn modify_all_connect_gaps(value: bool) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_connect_gaps(values: Vec<bool>) -> RestyleSurface<X, Y, Z>
pub fn modify_connect_gaps(values: Vec<bool>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn contours(self, value: SurfaceContours) -> Box<Self>
sourcepub fn modify_all_contours(value: SurfaceContours) -> RestyleSurface<X, Y, Z>
pub fn modify_all_contours(value: SurfaceContours) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_contours(values: Vec<SurfaceContours>) -> RestyleSurface<X, Y, Z>
pub fn modify_contours(values: Vec<SurfaceContours>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn hide_surface(self, value: bool) -> Box<Self>
sourcepub fn modify_all_hide_surface(value: bool) -> RestyleSurface<X, Y, Z>
pub fn modify_all_hide_surface(value: bool) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_hide_surface(values: Vec<bool>) -> RestyleSurface<X, Y, Z>
pub fn modify_hide_surface(values: Vec<bool>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn hover_info(self, value: HoverInfo) -> Box<Self>
sourcepub fn modify_all_hover_info(value: HoverInfo) -> RestyleSurface<X, Y, Z>
pub fn modify_all_hover_info(value: HoverInfo) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_hover_info(values: Vec<HoverInfo>) -> RestyleSurface<X, Y, Z>
pub fn modify_hover_info(values: Vec<HoverInfo>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn hover_label(self, value: Label) -> Box<Self>
sourcepub fn modify_all_hover_label(value: Label) -> RestyleSurface<X, Y, Z>
pub fn modify_all_hover_label(value: Label) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_hover_label(values: Vec<Label>) -> RestyleSurface<X, Y, Z>
pub fn modify_hover_label(values: Vec<Label>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn hover_template(self, value: impl AsRef<str>) -> Box<Self>
sourcepub fn modify_all_hover_template(
value: impl AsRef<str>
) -> RestyleSurface<X, Y, Z>
pub fn modify_all_hover_template( value: impl AsRef<str> ) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_hover_template(
values: Vec<impl AsRef<str>>
) -> RestyleSurface<X, Y, Z>
pub fn modify_hover_template( values: Vec<impl AsRef<str>> ) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn hover_template_array(self, value: Vec<impl AsRef<str>>) -> Box<Self>
pub fn hover_text(self, value: impl AsRef<str>) -> Box<Self>
sourcepub fn modify_all_hover_text(value: impl AsRef<str>) -> RestyleSurface<X, Y, Z>
pub fn modify_all_hover_text(value: impl AsRef<str>) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_hover_text(
values: Vec<impl AsRef<str>>
) -> RestyleSurface<X, Y, Z>
pub fn modify_hover_text( values: Vec<impl AsRef<str>> ) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn hover_text_array(self, value: Vec<impl AsRef<str>>) -> Box<Self>
pub fn legend_group(self, value: impl AsRef<str>) -> Box<Self>
sourcepub fn modify_all_legend_group(
value: impl AsRef<str>
) -> RestyleSurface<X, Y, Z>
pub fn modify_all_legend_group( value: impl AsRef<str> ) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_legend_group(
values: Vec<impl AsRef<str>>
) -> RestyleSurface<X, Y, Z>
pub fn modify_legend_group( values: Vec<impl AsRef<str>> ) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn legend_group_title(self, value: LegendGroupTitle) -> Box<Self>
sourcepub fn modify_all_legend_group_title(
value: LegendGroupTitle
) -> RestyleSurface<X, Y, Z>
pub fn modify_all_legend_group_title( value: LegendGroupTitle ) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_legend_group_title(
values: Vec<LegendGroupTitle>
) -> RestyleSurface<X, Y, Z>
pub fn modify_legend_group_title( values: Vec<LegendGroupTitle> ) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn light_position(self, value: Position) -> Box<Self>
sourcepub fn modify_all_light_position(value: Position) -> RestyleSurface<X, Y, Z>
pub fn modify_all_light_position(value: Position) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_light_position(values: Vec<Position>) -> RestyleSurface<X, Y, Z>
pub fn modify_light_position(values: Vec<Position>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn lighting(self, value: Lighting) -> Box<Self>
sourcepub fn modify_all_lighting(value: Lighting) -> RestyleSurface<X, Y, Z>
pub fn modify_all_lighting(value: Lighting) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_lighting(values: Vec<Lighting>) -> RestyleSurface<X, Y, Z>
pub fn modify_lighting(values: Vec<Lighting>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn name(self, value: impl AsRef<str>) -> Box<Self>
sourcepub fn modify_all_name(value: impl AsRef<str>) -> RestyleSurface<X, Y, Z>
pub fn modify_all_name(value: impl AsRef<str>) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_name(values: Vec<impl AsRef<str>>) -> RestyleSurface<X, Y, Z>
pub fn modify_name(values: Vec<impl AsRef<str>>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn opacity(self, value: f64) -> Box<Self>
sourcepub fn modify_all_opacity(value: f64) -> RestyleSurface<X, Y, Z>
pub fn modify_all_opacity(value: f64) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_opacity(values: Vec<f64>) -> RestyleSurface<X, Y, Z>
pub fn modify_opacity(values: Vec<f64>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn reverse_scale(self, value: bool) -> Box<Self>
sourcepub fn modify_all_reverse_scale(value: bool) -> RestyleSurface<X, Y, Z>
pub fn modify_all_reverse_scale(value: bool) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_reverse_scale(values: Vec<bool>) -> RestyleSurface<X, Y, Z>
pub fn modify_reverse_scale(values: Vec<bool>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn show_legend(self, value: bool) -> Box<Self>
sourcepub fn modify_all_show_legend(value: bool) -> RestyleSurface<X, Y, Z>
pub fn modify_all_show_legend(value: bool) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_show_legend(values: Vec<bool>) -> RestyleSurface<X, Y, Z>
pub fn modify_show_legend(values: Vec<bool>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn show_scale(self, value: bool) -> Box<Self>
sourcepub fn modify_all_show_scale(value: bool) -> RestyleSurface<X, Y, Z>
pub fn modify_all_show_scale(value: bool) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_show_scale(values: Vec<bool>) -> RestyleSurface<X, Y, Z>
pub fn modify_show_scale(values: Vec<bool>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn surface_color(self, value: Vec<impl Color>) -> Box<Self>
sourcepub fn modify_all_surface_color(
value: Vec<impl Color>
) -> RestyleSurface<X, Y, Z>
pub fn modify_all_surface_color( value: Vec<impl Color> ) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_surface_color(
values: Vec<Vec<impl Color>>
) -> RestyleSurface<X, Y, Z>
pub fn modify_surface_color( values: Vec<Vec<impl Color>> ) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn text(self, value: impl AsRef<str>) -> Box<Self>
sourcepub fn modify_all_text(value: impl AsRef<str>) -> RestyleSurface<X, Y, Z>
pub fn modify_all_text(value: impl AsRef<str>) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_text(values: Vec<impl AsRef<str>>) -> RestyleSurface<X, Y, Z>
pub fn modify_text(values: Vec<impl AsRef<str>>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn text_array(self, value: Vec<impl AsRef<str>>) -> Box<Self>
pub fn visible(self, value: Visible) -> Box<Self>
sourcepub fn modify_all_visible(value: Visible) -> RestyleSurface<X, Y, Z>
pub fn modify_all_visible(value: Visible) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_visible(values: Vec<Visible>) -> RestyleSurface<X, Y, Z>
pub fn modify_visible(values: Vec<Visible>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn x_calendar(self, value: Calendar) -> Box<Self>
sourcepub fn modify_all_x_calendar(value: Calendar) -> RestyleSurface<X, Y, Z>
pub fn modify_all_x_calendar(value: Calendar) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_x_calendar(values: Vec<Calendar>) -> RestyleSurface<X, Y, Z>
pub fn modify_x_calendar(values: Vec<Calendar>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn y_calendar(self, value: Calendar) -> Box<Self>
sourcepub fn modify_all_y_calendar(value: Calendar) -> RestyleSurface<X, Y, Z>
pub fn modify_all_y_calendar(value: Calendar) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_y_calendar(values: Vec<Calendar>) -> RestyleSurface<X, Y, Z>
pub fn modify_y_calendar(values: Vec<Calendar>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn z_calendar(self, value: Calendar) -> Box<Self>
sourcepub fn modify_all_z_calendar(value: Calendar) -> RestyleSurface<X, Y, Z>
pub fn modify_all_z_calendar(value: Calendar) -> RestyleSurface<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_z_calendar(values: Vec<Calendar>) -> RestyleSurface<X, Y, Z>
pub fn modify_z_calendar(values: Vec<Calendar>) -> RestyleSurface<X, Y, Z>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces