tiby312 / poloto-project

MIT License
159 stars 10 forks source link

Can Poloto do plots with multiple Y axes or vertically stacked plots (that share X axis)? #201

Open vi opened 1 year ago

vi commented 1 year ago

Can Poloto be used to plot data with different units of measure (that have different scale of values on Y axis), like in GNUplot's y2 feature? Ideally I would like it to support more than 2 vertical axes.

Can Poloto be used to build a vertically stacked group of plots where X axis is the same, and there are multiple Y axes for different data series? They are cropped separately and does not intersect with each other, but vertical grid lines are shared between all plots. X axis may or may not be repeated within each subplot.

tiby312 commented 1 year ago

It can not unfortunately. However, it would be an interesting challenge to add. I think would basically need something like:


fn data_y2<P1:Point,P2:Point>(a:impl PlotIterator<P1>,b:impl PlotIterator<P2>) ->Stage1<??>  where P1::X=P2::X{

}
vi commented 1 year ago

Ideally it should support more than two axes (they can be stacked on one side), with distinct colours and distinctly coloured grid lines.