pub struct Polar<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Polar<'a>
impl<'a> Polar<'a>
pub fn domain(&mut self) -> &mut Domain<'a>
Sourcepub fn sector(&mut self, sector: &'a InfoArray) -> &mut Self
pub fn sector(&mut self, sector: &'a InfoArray) -> &mut Self
Sets angular span of this polar subplot with two angles (in degrees). Sector are assumed to be spanned in the counterclockwise direction with 0 corresponding to rightmost limit of the polar subplot.
default: [0,360]
Sourcepub fn hole(&mut self, hole: f64) -> &mut Self
pub fn hole(&mut self, hole: f64) -> &mut Self
Sets the fraction of the radius to cut out of the polar subplot.
default: 0
Sourcepub fn bgcolor(&mut self, bgcolor: &'a str) -> &mut Self
pub fn bgcolor(&mut self, bgcolor: &'a str) -> &mut Self
Set the background color of the subplot
default: #fff
pub fn radialaxis(&mut self) -> &mut Radialaxis<'a>
pub fn angularaxis(&mut self) -> &mut Angularaxis<'a>
Sourcepub fn gridshape(&mut self, gridshape: Gridshape) -> &mut Self
pub fn gridshape(&mut self, gridshape: Gridshape) -> &mut Self
Determines if the radial axis grid lines and angular axis line are drawn as circular sectors or as linear (polygon) sectors. Has an effect only when the angular axis has type
category. Note that radialaxis.angle
is snapped to the angle of the closest vertex when gridshape
is circular (so that radial axis scale is the same as the data scale).
default: circular
Sourcepub fn uirevision(&mut self, uirevision: Any) -> &mut Self
pub fn uirevision(&mut self, uirevision: Any) -> &mut Self
Controls persistence of user-driven changes in axis attributes, if not overridden in the individual axes. Defaults to layout.uirevision
.