Struct DensityMapbox

Source
pub struct DensityMapbox<Lat, Lon, Z>
where Lat: Serialize + Clone, Lon: Serialize + Clone, Z: Serialize + Clone,
{ /* private fields */ }

Implementations§

Source§

impl<Lat, Lon, Z> DensityMapbox<Lat, Lon, Z>
where Lat: Serialize + Clone, Lon: Serialize + Clone, Z: Serialize + Clone,

Source

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.

Source

pub fn modify_all_name( value: impl AsRef<str>, ) -> RestyleDensityMapbox<Lat, Lon, Z>

Apply the same restyling to all the traces

Source

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

Source

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

Source

pub fn modify_all_visible(value: Visible) -> RestyleDensityMapbox<Lat, Lon, Z>

Apply the same restyling to all the traces

Source

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

Source

pub fn show_legend(self, value: bool) -> Box<Self>

Determines whether or not an item corresponding to this trace is shown in the legend.

Source

pub fn modify_all_show_legend(value: bool) -> RestyleDensityMapbox<Lat, Lon, Z>

Apply the same restyling to all the traces

Source

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

Source

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.

Source

pub fn modify_all_legend_rank(value: usize) -> RestyleDensityMapbox<Lat, Lon, Z>

Apply the same restyling to all the traces

Source

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

Source

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.

Source

pub fn modify_all_legend_group( value: impl AsRef<str>, ) -> RestyleDensityMapbox<Lat, Lon, Z>

Apply the same restyling to all the traces

Source

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

Source

pub fn legend_group_title(self, value: impl Into<LegendGroupTitle>) -> Box<Self>

Set and style the title to appear for the legend group.

Source

pub fn modify_all_legend_group_title( value: impl Into<LegendGroupTitle>, ) -> RestyleDensityMapbox<Lat, Lon, Z>

Apply the same restyling to all the traces

Source

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

Source

pub fn line(self, value: Line) -> Box<Self>

Line display properties.

Source

pub fn modify_all_line(value: Line) -> RestyleDensityMapbox<Lat, Lon, Z>

Apply the same restyling to all the traces

Source

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

Source

pub fn lat(self, value: Vec<Lat>) -> Box<Self>

Source

pub fn modify_all_lat(value: Vec<Lat>) -> RestyleDensityMapbox<Lat, Lon, Z>

Apply the same restyling to all the traces

Source

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

Source

pub fn lon(self, value: Vec<Lon>) -> Box<Self>

Source

pub fn modify_all_lon(value: Vec<Lon>) -> RestyleDensityMapbox<Lat, Lon, Z>

Apply the same restyling to all the traces

Source

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

Source

pub fn z(self, value: Vec<Z>) -> Box<Self>

Source

pub fn modify_all_z(value: Vec<Z>) -> RestyleDensityMapbox<Lat, Lon, Z>

Apply the same restyling to all the traces

Source

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

Source

pub fn opacity(self, value: f64) -> Box<Self>

Sets the opacity of the trace.

Source

pub fn modify_all_opacity(value: f64) -> RestyleDensityMapbox<Lat, Lon, Z>

Apply the same restyling to all the traces

Source

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

Source

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.

Source

pub fn modify_all_subplot( value: impl AsRef<str>, ) -> RestyleDensityMapbox<Lat, Lon, Z>

Apply the same restyling to all the traces

Source

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

Source

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.

Source

pub fn modify_all_zauto(value: bool) -> RestyleDensityMapbox<Lat, Lon, Z>

Apply the same restyling to all the traces

Source

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

Source

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.

Source

pub fn modify_all_zmax(value: Z) -> RestyleDensityMapbox<Lat, Lon, Z>

Apply the same restyling to all the traces

Source

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

Source

pub fn zmid(self, value: Z) -> Box<Self>

Source

pub fn modify_all_zmid(value: Z) -> RestyleDensityMapbox<Lat, Lon, Z>

Apply the same restyling to all the traces

Source

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

Source

pub fn zmin(self, value: Z) -> Box<Self>

Source

pub fn modify_all_zmin(value: Z) -> RestyleDensityMapbox<Lat, Lon, Z>

Apply the same restyling to all the traces

Source

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

Source

pub fn zoom(self, value: u8) -> Box<Self>

Source

pub fn modify_all_zoom(value: u8) -> RestyleDensityMapbox<Lat, Lon, Z>

Apply the same restyling to all the traces

Source

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

Source

pub fn radius(self, value: u8) -> Box<Self>

Source

pub fn modify_all_radius(value: u8) -> RestyleDensityMapbox<Lat, Lon, Z>

Apply the same restyling to all the traces

Source

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

Source§

impl<Lat, Lon, Z> DensityMapbox<Lat, Lon, Z>
where Lat: Serialize + Clone + Default, Lon: Serialize + Clone + Default, Z: Serialize + Clone + Default,

Source

pub fn new(lat: Vec<Lat>, lon: Vec<Lon>, z: Vec<Z>) -> Box<Self>

Trait Implementations§

Source§

impl<Lat, Lon, Z> Clone for DensityMapbox<Lat, Lon, Z>
where Lat: Serialize + Clone + Clone, Lon: Serialize + Clone + Clone, Z: Serialize + Clone + Clone,

Source§

fn clone(&self) -> DensityMapbox<Lat, Lon, Z>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<Lat, Lon, Z> Debug for DensityMapbox<Lat, Lon, Z>
where Lat: Serialize + Clone + Debug, Lon: Serialize + Clone + Debug, Z: Serialize + Clone + Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Lat, Lon, Z> Default for DensityMapbox<Lat, Lon, Z>
where Lat: Serialize + Clone, Lon: Serialize + Clone, Z: Serialize + Clone,

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<Lat, Lon, Z> Serialize for DensityMapbox<Lat, Lon, Z>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<Lat, Lon, Z> Trace for DensityMapbox<Lat, Lon, Z>
where Lat: Serialize + Clone, Lon: Serialize + Clone, Z: Serialize + Clone,

Source§

fn to_json(&self) -> String

Auto Trait Implementations§

§

impl<Lat, Lon, Z> Freeze for DensityMapbox<Lat, Lon, Z>
where Z: Freeze,

§

impl<Lat, Lon, Z> !RefUnwindSafe for DensityMapbox<Lat, Lon, Z>

§

impl<Lat, Lon, Z> Send for DensityMapbox<Lat, Lon, Z>
where Z: Send, Lat: Send, Lon: Send,

§

impl<Lat, Lon, Z> Sync for DensityMapbox<Lat, Lon, Z>
where Z: Sync, Lat: Sync, Lon: Sync,

§

impl<Lat, Lon, Z> Unpin for DensityMapbox<Lat, Lon, Z>
where Z: Unpin, Lat: Unpin, Lon: Unpin,

§

impl<Lat, Lon, Z> !UnwindSafe for DensityMapbox<Lat, Lon, Z>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

Source§

fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V