Skip to main content

draw_colorbar

Function draw_colorbar 

Source
pub fn draw_colorbar<DB: DrawingBackend>(
    area: &DrawingArea<DB, Shift>,
    colormap: &GradientColorMap,
    norm: &Normalization,
    ticks: usize,
) -> Result<(), Box<dyn Error>>
where DB::ErrorType: 'static,
Expand description

Draw a vertical colorbar filling the left edge of area, with a handful of tick labels to its right. steps controls the gradient resolution.