plotlib
plotlib copied to clipboard
1.0
This is an overview issue to track all the feature we want before 1.0:
- [ ] lots of plot types
- [ ] legends
- [ ] output plots in may formats
- [x] SVG
- [x] ASCII
- [ ] PNG
- [ ] 3D format
- [ ] different projections
- [x] normal 2D plot
- [ ] 3D plot on a 2D page
- [ ] map projections
- [ ] dual y-axes
- [ ] combined (e.g. scatter plus histogram) plots
- [ ] easy to get own data into plots
- [ ] extensible with new output formats and projects
- [ ] custom axis formatting
- [ ] custom styling
What about adding PNG to the list of output formats ? I actually don't know how some of the PNG crates work
What do you think about adding the image crate and extending the View trait with some "to_image" method?
Also annotations (text with pointers towards data points) would be a really nice feature!
I might be tempted to contribute in the future to add candle bar plotting available, but I notice the axis is defined with floats while plotting of time series requires some notion of time and duration.
3 questions:
-
Is time series support something you plan to add soon? (so I do not start working on it to see it committed before I'm done...)
-
Between introducing a
Coordinate
(and maybe anInterval
too) trait and having multiple types (integer types, f32, f64, potentially chrono::NaiveTime, chrono::NaiveDate and chrono::NaiveDateTime (behind a feature gate) implement them to potentially get to an abstractAxis<Coordinate>
or just using a UNIX timestamp turned into an f64 to represent time-series' coordinates, what would you prefer? -
Would it be risky for me to start working on those in a few weeks? (e.g. is there any big refactoring planned?)
Otherwise, I am really happy to see a decent-looking crate for plotting appearing. I was actually thinking of making my own soon (I am studying algorithmic trading) and I feel this will save me a lot of time.