pub struct TernaryMesh { /* private fields */ }Expand description
An owned mesh configuration for explicit chart-layer compositing.
It contains styles and policies only. It never owns numerical series data, so drawing it with different Plotters backends or viewports cannot mutate or reconstruct a contour path.
Implementations§
Source§impl TernaryMesh
impl TernaryMesh
Sourcepub fn draw_background<DB: DrawingBackend>(
&self,
chart: &mut TernaryChart<'_, DB>,
) -> Result<(), TernaryChartError<DB::ErrorType>>
pub fn draw_background<DB: DrawingBackend>( &self, chart: &mut TernaryChart<'_, DB>, ) -> Result<(), TernaryChartError<DB::ErrorType>>
Draw minor and major grid geometry beneath data at native resolution.
Sourcepub fn draw_background_scaled<DB: DrawingBackend>(
&self,
chart: &mut TernaryChart<'_, DB>,
scale: u32,
) -> Result<(), TernaryChartError<DB::ErrorType>>
pub fn draw_background_scaled<DB: DrawingBackend>( &self, chart: &mut TernaryChart<'_, DB>, scale: u32, ) -> Result<(), TernaryChartError<DB::ErrorType>>
Draw minor and major grid geometry beneath data with supersampled pixel styles.
Sourcepub fn draw_foreground<DB: DrawingBackend>(
&self,
chart: &mut TernaryChart<'_, DB>,
) -> Result<(), TernaryChartError<DB::ErrorType>>
pub fn draw_foreground<DB: DrawingBackend>( &self, chart: &mut TernaryChart<'_, DB>, ) -> Result<(), TernaryChartError<DB::ErrorType>>
Draw the physical simplex frame and ticks above data at native resolution.
Sourcepub fn draw_foreground_scaled<DB: DrawingBackend>(
&self,
chart: &mut TernaryChart<'_, DB>,
scale: u32,
) -> Result<(), TernaryChartError<DB::ErrorType>>
pub fn draw_foreground_scaled<DB: DrawingBackend>( &self, chart: &mut TernaryChart<'_, DB>, scale: u32, ) -> Result<(), TernaryChartError<DB::ErrorType>>
Draw the physical simplex frame and ticks above data with supersampled pixel styles.
Sourcepub fn draw_text<DB: DrawingBackend>(
&self,
chart: &mut TernaryChart<'_, DB>,
) -> Result<(), TernaryChartError<DB::ErrorType>>
pub fn draw_text<DB: DrawingBackend>( &self, chart: &mut TernaryChart<'_, DB>, ) -> Result<(), TernaryChartError<DB::ErrorType>>
Draw tick labels, axis names, and corner names at final resolution.
Auto Trait Implementations§
impl !RefUnwindSafe for TernaryMesh
impl !UnwindSafe for TernaryMesh
impl Freeze for TernaryMesh
impl Send for TernaryMesh
impl Sync for TernaryMesh
impl Unpin for TernaryMesh
impl UnsafeUnpin for TernaryMesh
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more