pub fn draw_annotations(
buf: &mut Buffer,
plot: Rect,
annotations: &[Annotation],
x_cell: &dyn Fn(f64) -> Option<i32>,
y_cell: &dyn Fn(f64) -> Option<i32>,
)Expand description
Draw annotations inside plot.
x_cell / y_cell map a data value to a cell column / row relative to the
plot’s top-left (may fall outside the plot; return None if unmappable).
Call before drawing data so data glyphs stay on top. Never panics on
degenerate areas or non-finite values.