Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion plotters/src/chart/dual_coord.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,17 @@ impl<'a, DB: DrawingBackend, CT1: CoordTranslate, CT2: CoordTranslate>
&self.secondary.drawing_area
}

/// Borrow a mutable reference to the chart context that uses the secondary
/// Borrow a reference to the chart context that uses the secondary
/// coordinate system
pub fn borrow_secondary(&self) -> &ChartContext<'a, DB, CT2> {
&self.secondary
}

/// Borrow a mutable reference to the chart context that uses the secondary
/// coordinate system
pub fn borrow_secondary_mut(&mut self) -> &mut ChartContext<'a, DB, CT2> {
&mut self.secondary
}
}

impl<DB: DrawingBackend, CT1: CoordTranslate, CT2: ReverseCoordTranslate>
Expand Down