coder543 / dataplotlib

Scientific plotting library for Rust
59 stars 6 forks source link

Colored and multiple plots implemented #1

Closed Piripant closed 8 years ago

Piripant commented 8 years ago

I have implemented the XyColor enumerator value to give custom colors to the plots, and added multiple plots support for PlotBuilder2D. I have eliminated all the uncolored enumerators values, in favour of making functions that set the colors to default values (read the implementation of add_simple_xy in PlotBuilder2D).

I also made a new example to show off the new functionalities.

Piripant commented 8 years ago

Thanks!

coder543 commented 8 years ago

Merged. Thanks for your work! I just made some quick changes just now and pushed them. As a rule of thumb, I prefer standardization over any particular format, so I use rustfmt to standardize all code formatting before committing it. It isn't perfect, but it's good enough for me.