pub struct HeatMap<X, Y, Z>where
X: Serialize + Clone,
Y: Serialize + Clone,
Z: Serialize + Clone,{ /* 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>where
X: Serialize + Clone,
Y: Serialize + Clone,
Z: Serialize + Clone,
impl<X, Y, Z> HeatMap<X, Y, Z>where X: Serialize + Clone, Y: Serialize + Clone, Z: Serialize + Clone,
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
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: LegendGroupTitle) -> Box<Self>
sourcepub fn modify_all_legend_group_title(
value: LegendGroupTitle
) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_legend_group_title( value: LegendGroupTitle ) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_legend_group_title(
values: Vec<LegendGroupTitle>
) -> RestyleHeatMap<X, Y, Z>
pub fn modify_legend_group_title( values: Vec<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: Z) -> Box<Self>
sourcepub fn modify_all_zmax(value: Z) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_zmax(value: Z) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_zmax(values: Vec<Z>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_zmax(values: 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 zmid(self, value: Z) -> Box<Self>
sourcepub fn modify_all_zmid(value: Z) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_zmid(value: Z) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_zmid(values: Vec<Z>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_zmid(values: 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 zmin(self, value: Z) -> Box<Self>
sourcepub fn modify_all_zmin(value: Z) -> RestyleHeatMap<X, Y, Z>
pub fn modify_all_zmin(value: Z) -> RestyleHeatMap<X, Y, Z>
Apply the same restyling to all the traces
sourcepub fn modify_zmin(values: Vec<Z>) -> RestyleHeatMap<X, Y, Z>
pub fn modify_zmin(values: 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 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