Plotters 0.3 - cannot plot to a buffer

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?

Your byte buffer needs to be pre-allocated at the correct size. height * width

let mut buffer = vec![0; height * width * pixel_size];
let drawing_area = BitMapBackend::with_buffer(&mut buffer, (width, height));

Correction, you need to also multiply that by the pixel size you choose PixelFormat in plotters_bitmap::bitmap_pixel - Rust

Awesome thanks!
I'll check it out. I knew it was something simple.