plotters-rs / plotters

A rust drawing library for high quality data plotting for both WASM and native, statically and realtimely 🦀 📈🚀
https://plotters-rs.github.io/home/
MIT License
3.89k stars 281 forks source link

[BUG] If the directory is not created, no pictures are generated and no error messages are reported #262

Closed lll1412 closed 3 years ago

lll1412 commented 3 years ago

https://docs.rs/plotters/0.3.1/plotters/index.html

None of the sample code here produces images when pasted directly, and no error messages are reported, which I found after debugging was caused by the failure to create a directory.

Hopefully it can be fixed to report exception information or to automatically create directories

Ragarnoy commented 3 years ago

236

If you call present() on your BitMapBackend it will report an error if plotters failed to create a directory