I am trying to use Plotters + Iced. The goal is to use Iced for the UI to select different plots. I am trying to plot these to
backend = BitMapBackend::with_buffer()
then presenting it as an Iced Image The problem, I cannot get the .with_buffer() to accept either a [u8] or Vec buffer. I keep getting a "wrong size buffer" error. I apologize ahead of time, but I am not at work and typing on my phone and trying to format the code:
let buffer = Vec::::new();
let drawing_area = BitMapBackend::with_buffer(&buffer, (800, 600)).into_drawing_area();
Has anyone else run into difficulties building a DrawingArea buffer?