Skip to content

[BUG] No warning for when folder doesn't exist #189

@JacobHaig

Description

@JacobHaig

Describe the bug
I was following the quickstart guide example on https://docs.rs/plotters/0.3.0/plotters/ and I noticed that the image was not generating when the folder doesn't exist. There is no warning or error. It seems like it is intended that if the folder doesn't exist, the folder would be created.

To Reproduce
let root = BitMapBackend::new("folder-that-doesnt-exist/0.png", (640, 480)).into_drawing_area();
needs to be changed to

let root = BitMapBackend::new("folder-that-exists/0.png", (640, 480)).into_drawing_area();
or
let root = BitMapBackend::new("0.png", (640, 480)).into_drawing_area();

Version Information
plotters = "0.3" from Crates.io

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions