coder543 / dataplotlib

Scientific plotting library for Rust
59 stars 6 forks source link

Add image-based backend #13

Open coder543 opened 6 years ago

coder543 commented 6 years ago

add another backend using image instead of sdl2, for people who just want to save plots to image files directly, which requires fewer dependencies and would be compatible with batch processing. There's a branch here which has a new draw_image.rs file, which has some of the stuff stubbed out for this. The commented-out chunks of code are the SDL2 implementations, for ease of reference of what needs to be translated into image commands.