pub struct HeatMap<X, Y, Z>{ /* private fields */ }
Expand description
Construct a heat map trace.
§Examples
use plotly::HeatMap;
let trace = HeatMap::new(
vec![0.0, 1.0],
vec![2.0, 3.0],
vec![vec![0.25, 0.75], vec![0.0, 0.5]]
);
let expected = serde_json::json!({
"type": "heatmap",
"x": [0.0, 1.0],
"y": [2.0, 3.0],
"z": [[0.25, 0.75], [0.0, 0.5]]
});
assert_eq!(serde_json::to_value(trace).unwrap(), expected);
Implementations§
Source§impl<X, Y, Z> HeatMap<X, Y, Z>
impl<X, Y, Z> HeatMap<X, Y, Z>
pub fn auto_color_scale(self, value: bool) -> Box<Self>
Sourcepub fn modify_all_auto_color_scale(value: bool) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_auto_color_scale(value: bool) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_auto_color_scale(values: Vec<bool>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_auto_color_scale(values: Vec<bool>) -> RestyleHeatMap<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) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_color_bar(value: ColorBar) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_color_bar(values: Vec<ColorBar>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_color_bar(values: Vec<ColorBar>) -> RestyleHeatMap<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) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_color_scale(value: ColorScale) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_color_scale(values: Vec<ColorScale>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_color_scale(values: Vec<ColorScale>) -> RestyleHeatMap<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) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_connect_gaps(value: bool) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_connect_gaps(values: Vec<bool>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_connect_gaps(values: Vec<bool>) -> RestyleHeatMap<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
Sourcepub fn custom_data(
self,
value: Vec<impl Into<NumOrString> + Clone>,
) -> Box<Self>
pub fn custom_data( self, value: Vec<impl Into<NumOrString> + Clone>, ) -> Box<Self>
Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
Sourcepub fn modify_all_custom_data(
value: Vec<impl Into<NumOrString> + Clone>,
) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_custom_data( value: Vec<impl Into<NumOrString> + Clone>, ) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_custom_data(
values: Vec<Vec<impl Into<NumOrString> + Clone>>,
) -> RestyleHeatMap<X, Y, Z>
pub fn modify_custom_data( values: Vec<Vec<impl Into<NumOrString> + Clone>>, ) -> RestyleHeatMap<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) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_hover_info(value: HoverInfo) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_hover_info(values: Vec<HoverInfo>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_hover_info(values: Vec<HoverInfo>) -> RestyleHeatMap<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) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_hover_label(value: Label) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_hover_label(values: Vec<Label>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_hover_label(values: Vec<Label>) -> RestyleHeatMap<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_on_gaps(self, value: bool) -> Box<Self>
Sourcepub fn modify_all_hover_on_gaps(value: bool) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_hover_on_gaps(value: bool) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_hover_on_gaps(values: Vec<bool>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_hover_on_gaps(values: Vec<bool>) -> RestyleHeatMap<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>,
) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_hover_template( value: impl AsRef<str>, ) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_hover_template(
values: Vec<impl AsRef<str>>,
) -> RestyleHeatMap<X, Y, Z>
pub fn modify_hover_template( values: Vec<impl AsRef<str>>, ) -> RestyleHeatMap<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: Vec<impl AsRef<str>>) -> Box<Self>
Sourcepub fn modify_all_hover_text(
value: Vec<impl AsRef<str>>,
) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_hover_text( value: Vec<impl AsRef<str>>, ) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_hover_text(
values: Vec<Vec<impl AsRef<str>>>,
) -> RestyleHeatMap<X, Y, Z>
pub fn modify_hover_text( values: Vec<Vec<impl AsRef<str>>>, ) -> RestyleHeatMap<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(self, value: impl AsRef<str>) -> Box<Self>
Sourcepub fn modify_all_legend_group(
value: impl AsRef<str>,
) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_legend_group( value: impl AsRef<str>, ) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_legend_group(
values: Vec<impl AsRef<str>>,
) -> RestyleHeatMap<X, Y, Z>
pub fn modify_legend_group( values: Vec<impl AsRef<str>>, ) -> RestyleHeatMap<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: impl Into<LegendGroupTitle>) -> Box<Self>
Sourcepub fn modify_all_legend_group_title(
value: impl Into<LegendGroupTitle>,
) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_legend_group_title( value: impl Into<LegendGroupTitle>, ) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_legend_group_title(
values: Vec<impl Into<LegendGroupTitle>>,
) -> RestyleHeatMap<X, Y, Z>
pub fn modify_legend_group_title( values: Vec<impl Into<LegendGroupTitle>>, ) -> RestyleHeatMap<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>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_name(value: impl AsRef<str>) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_name(values: Vec<impl AsRef<str>>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_name(values: Vec<impl AsRef<str>>) -> RestyleHeatMap<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) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_opacity(value: f64) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_opacity(values: Vec<f64>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_opacity(values: Vec<f64>) -> RestyleHeatMap<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) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_reverse_scale(value: bool) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_reverse_scale(values: Vec<bool>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_reverse_scale(values: Vec<bool>) -> RestyleHeatMap<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) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_show_legend(value: bool) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_show_legend(values: Vec<bool>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_show_legend(values: Vec<bool>) -> RestyleHeatMap<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) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_show_scale(value: bool) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_show_scale(values: Vec<bool>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_show_scale(values: Vec<bool>) -> RestyleHeatMap<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: Vec<impl AsRef<str>>) -> Box<Self>
Sourcepub fn modify_all_text(value: Vec<impl AsRef<str>>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_text(value: Vec<impl AsRef<str>>) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_text(values: Vec<Vec<impl AsRef<str>>>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_text(values: Vec<Vec<impl AsRef<str>>>) -> RestyleHeatMap<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 transpose(self, value: bool) -> Box<Self>
Sourcepub fn modify_all_transpose(value: bool) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_transpose(value: bool) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_transpose(values: Vec<bool>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_transpose(values: Vec<bool>) -> RestyleHeatMap<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 visible(self, value: Visible) -> Box<Self>
Sourcepub fn modify_all_visible(value: Visible) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_visible(value: Visible) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_visible(values: Vec<Visible>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_visible(values: Vec<Visible>) -> RestyleHeatMap<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(self, value: Vec<X>) -> Box<Self>
Sourcepub fn modify_all_x(value: Vec<X>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_x(value: Vec<X>) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_x(values: Vec<Vec<X>>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_x(values: Vec<Vec<X>>) -> RestyleHeatMap<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_axis(self, value: impl AsRef<str>) -> Box<Self>
Sourcepub fn modify_all_x_axis(value: impl AsRef<str>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_x_axis(value: impl AsRef<str>) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_x_axis(values: Vec<impl AsRef<str>>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_x_axis(values: Vec<impl AsRef<str>>) -> RestyleHeatMap<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) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_x_calendar(value: Calendar) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_x_calendar(values: Vec<Calendar>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_x_calendar(values: Vec<Calendar>) -> RestyleHeatMap<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>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_y(value: Vec<Y>) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_y(values: Vec<Vec<Y>>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_y(values: Vec<Vec<Y>>) -> RestyleHeatMap<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_axis(self, value: impl AsRef<str>) -> Box<Self>
Sourcepub fn modify_all_y_axis(value: impl AsRef<str>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_y_axis(value: impl AsRef<str>) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_y_axis(values: Vec<impl AsRef<str>>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_y_axis(values: Vec<impl AsRef<str>>) -> RestyleHeatMap<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) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_y_calendar(value: Calendar) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_y_calendar(values: Vec<Calendar>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_y_calendar(values: Vec<Calendar>) -> RestyleHeatMap<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<Z>) -> Box<Self>
Sourcepub fn modify_all_z(value: Vec<Z>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_z(value: Vec<Z>) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_z(values: Vec<Vec<Z>>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_z(values: Vec<Vec<Z>>) -> RestyleHeatMap<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 zauto(self, value: bool) -> Box<Self>
Sourcepub fn modify_all_zauto(value: bool) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_zauto(value: bool) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_zauto(values: Vec<bool>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_zauto(values: Vec<bool>) -> RestyleHeatMap<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 zhover_format(self, value: impl AsRef<str>) -> Box<Self>
Sourcepub fn modify_all_zhover_format(
value: impl AsRef<str>,
) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_zhover_format( value: impl AsRef<str>, ) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_zhover_format(
values: Vec<impl AsRef<str>>,
) -> RestyleHeatMap<X, Y, Z>
pub fn modify_zhover_format( values: Vec<impl AsRef<str>>, ) -> RestyleHeatMap<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 zmax(self, value: f64) -> Box<Self>
Sourcepub fn modify_all_zmax(value: f64) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_zmax(value: f64) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_zmax(values: Vec<f64>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_zmax(values: Vec<f64>) -> RestyleHeatMap<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 zmid(self, value: f64) -> Box<Self>
Sourcepub fn modify_all_zmid(value: f64) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_zmid(value: f64) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_zmid(values: Vec<f64>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_zmid(values: Vec<f64>) -> RestyleHeatMap<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 zmin(self, value: f64) -> Box<Self>
Sourcepub fn modify_all_zmin(value: f64) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_zmin(value: f64) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_zmin(values: Vec<f64>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_zmin(values: Vec<f64>) -> RestyleHeatMap<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 zsmooth(self, value: Smoothing) -> Box<Self>
Sourcepub fn modify_all_zsmooth(value: Smoothing) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_zsmooth(value: Smoothing) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_zsmooth(values: Vec<Smoothing>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_zsmooth(values: Vec<Smoothing>) -> RestyleHeatMap<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