pub struct DensityMapbox<Lat, Lon, Z>{ /* private fields */ }
Implementations§
Source§impl<Lat, Lon, Z> DensityMapbox<Lat, Lon, Z>
impl<Lat, Lon, Z> DensityMapbox<Lat, Lon, Z>
Sourcepub fn name(self, value: impl AsRef<str>) -> Box<Self>
pub fn name(self, value: impl AsRef<str>) -> Box<Self>
Sets the trace name. The trace name appear as the legend item and on hover.
Sourcepub fn modify_all_name(
value: impl AsRef<str>,
) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_all_name( value: impl AsRef<str>, ) -> RestyleDensityMapbox<Lat, Lon, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_name(
values: Vec<impl AsRef<str>>,
) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_name( values: Vec<impl AsRef<str>>, ) -> RestyleDensityMapbox<Lat, Lon, 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 visible(self, value: Visible) -> Box<Self>
pub fn visible(self, value: Visible) -> Box<Self>
Determines whether or not this trace is visible. If
Visible::LegendOnly
, the trace is not drawn, but can appear as a
legend item (provided that the legend itself is visible).
Sourcepub fn modify_all_visible(value: Visible) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_all_visible(value: Visible) -> RestyleDensityMapbox<Lat, Lon, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_visible(values: Vec<Visible>) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_visible(values: Vec<Visible>) -> RestyleDensityMapbox<Lat, Lon, 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 show_legend(self, value: bool) -> Box<Self>
pub fn show_legend(self, value: bool) -> Box<Self>
Determines whether or not an item corresponding to this trace is shown in the legend.
Sourcepub fn modify_all_show_legend(value: bool) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_all_show_legend(value: bool) -> RestyleDensityMapbox<Lat, Lon, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_show_legend(
values: Vec<bool>,
) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_show_legend( values: Vec<bool>, ) -> RestyleDensityMapbox<Lat, Lon, 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 legend_rank(self, value: usize) -> Box<Self>
pub fn legend_rank(self, value: usize) -> Box<Self>
Sets the legend rank for this trace. Items and groups with smaller ranks
are presented on top/left side while with "reversed"
legend.trace_order` they are on bottom/right side. The default
legendrank is 1000, so that you can use ranks less than 1000 to
place certain items before all unranked items, and ranks greater
than 1000 to go after all unranked items.
Sourcepub fn modify_all_legend_rank(value: usize) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_all_legend_rank(value: usize) -> RestyleDensityMapbox<Lat, Lon, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_legend_rank(
values: Vec<usize>,
) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_legend_rank( values: Vec<usize>, ) -> RestyleDensityMapbox<Lat, Lon, 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 legend_group(self, value: impl AsRef<str>) -> Box<Self>
pub fn legend_group(self, value: impl AsRef<str>) -> Box<Self>
Sets the legend group for this trace. Traces part of the same legend group show/hide at the same time when toggling legend items.
Sourcepub fn modify_all_legend_group(
value: impl AsRef<str>,
) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_all_legend_group( value: impl AsRef<str>, ) -> RestyleDensityMapbox<Lat, Lon, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_legend_group(
values: Vec<impl AsRef<str>>,
) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_legend_group( values: Vec<impl AsRef<str>>, ) -> RestyleDensityMapbox<Lat, Lon, 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 legend_group_title(self, value: impl Into<LegendGroupTitle>) -> Box<Self>
pub fn legend_group_title(self, value: impl Into<LegendGroupTitle>) -> Box<Self>
Set and style the title to appear for the legend group.
Sourcepub fn modify_all_legend_group_title(
value: impl Into<LegendGroupTitle>,
) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_all_legend_group_title( value: impl Into<LegendGroupTitle>, ) -> RestyleDensityMapbox<Lat, Lon, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_legend_group_title(
values: Vec<impl Into<LegendGroupTitle>>,
) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_legend_group_title( values: Vec<impl Into<LegendGroupTitle>>, ) -> RestyleDensityMapbox<Lat, Lon, 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 modify_all_line(value: Line) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_all_line(value: Line) -> RestyleDensityMapbox<Lat, Lon, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_line(values: Vec<Line>) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_line(values: Vec<Line>) -> RestyleDensityMapbox<Lat, Lon, 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 lat(self, value: Vec<Lat>) -> Box<Self>
Sourcepub fn modify_all_lat(value: Vec<Lat>) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_all_lat(value: Vec<Lat>) -> RestyleDensityMapbox<Lat, Lon, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_lat(values: Vec<Vec<Lat>>) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_lat(values: Vec<Vec<Lat>>) -> RestyleDensityMapbox<Lat, Lon, 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 lon(self, value: Vec<Lon>) -> Box<Self>
Sourcepub fn modify_all_lon(value: Vec<Lon>) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_all_lon(value: Vec<Lon>) -> RestyleDensityMapbox<Lat, Lon, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_lon(values: Vec<Vec<Lon>>) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_lon(values: Vec<Vec<Lon>>) -> RestyleDensityMapbox<Lat, Lon, 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>) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_all_z(value: Vec<Z>) -> RestyleDensityMapbox<Lat, Lon, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_z(values: Vec<Vec<Z>>) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_z(values: Vec<Vec<Z>>) -> RestyleDensityMapbox<Lat, Lon, 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 modify_all_opacity(value: f64) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_all_opacity(value: f64) -> RestyleDensityMapbox<Lat, Lon, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_opacity(values: Vec<f64>) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_opacity(values: Vec<f64>) -> RestyleDensityMapbox<Lat, Lon, 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 subplot(self, value: impl AsRef<str>) -> Box<Self>
pub fn subplot(self, value: impl AsRef<str>) -> Box<Self>
Sets a reference between this trace’s data coordinates and a mapbox
subplot. If “mapbox” (the default value), the data refer to
layout.mapbox
. If “mapbox2”, the data refer to layout.mapbox2
, and
so on.
Sourcepub fn modify_all_subplot(
value: impl AsRef<str>,
) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_all_subplot( value: impl AsRef<str>, ) -> RestyleDensityMapbox<Lat, Lon, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_subplot(
values: Vec<impl AsRef<str>>,
) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_subplot( values: Vec<impl AsRef<str>>, ) -> RestyleDensityMapbox<Lat, Lon, 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 zauto(self, value: bool) -> Box<Self>
pub fn zauto(self, value: bool) -> Box<Self>
Determines whether or not the color domain is computed
with respect to the input data (here in z
) or the bounds set
in zmin
and zmax
. Defaults to false when zmin
and zmax
are
set by the user.
Sourcepub fn modify_all_zauto(value: bool) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_all_zauto(value: bool) -> RestyleDensityMapbox<Lat, Lon, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_zauto(values: Vec<bool>) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_zauto(values: Vec<bool>) -> RestyleDensityMapbox<Lat, Lon, 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 zmax(self, value: Z) -> Box<Self>
pub fn zmax(self, value: Z) -> Box<Self>
Sets the upper bound of the color domain. Value should have the
same units as in z
and if set, zmin
must be set as well.
Sourcepub fn modify_all_zmax(value: Z) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_all_zmax(value: Z) -> RestyleDensityMapbox<Lat, Lon, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_zmax(values: Vec<Z>) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_zmax(values: Vec<Z>) -> RestyleDensityMapbox<Lat, Lon, 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) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_all_zmid(value: Z) -> RestyleDensityMapbox<Lat, Lon, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_zmid(values: Vec<Z>) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_zmid(values: Vec<Z>) -> RestyleDensityMapbox<Lat, Lon, 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) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_all_zmin(value: Z) -> RestyleDensityMapbox<Lat, Lon, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_zmin(values: Vec<Z>) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_zmin(values: Vec<Z>) -> RestyleDensityMapbox<Lat, Lon, 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 zoom(self, value: u8) -> Box<Self>
Sourcepub fn modify_all_zoom(value: u8) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_all_zoom(value: u8) -> RestyleDensityMapbox<Lat, Lon, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_zoom(values: Vec<u8>) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_zoom(values: Vec<u8>) -> RestyleDensityMapbox<Lat, Lon, 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 radius(self, value: u8) -> Box<Self>
Sourcepub fn modify_all_radius(value: u8) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_all_radius(value: u8) -> RestyleDensityMapbox<Lat, Lon, Z>
Apply the same restyling to all the traces
Sourcepub fn modify_radius(values: Vec<u8>) -> RestyleDensityMapbox<Lat, Lon, Z>
pub fn modify_radius(values: Vec<u8>) -> RestyleDensityMapbox<Lat, Lon, 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
Trait Implementations§
Source§impl<Lat, Lon, Z> Clone for DensityMapbox<Lat, Lon, Z>
impl<Lat, Lon, Z> Clone for DensityMapbox<Lat, Lon, Z>
Source§fn clone(&self) -> DensityMapbox<Lat, Lon, Z>
fn clone(&self) -> DensityMapbox<Lat, Lon, Z>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more