Open theogf opened 2 months ago
Looks like this could be done by a vector of constructed polygons sent to poly
, or potentially using band
with per vertex colors for efficiency. But I like the simplicity of poly
and we can always pass a vector of preconstructed meshes.. @theogf what would your ideal API look like?
I was imagining something like stackedarea(xs, ys::Union{Vector{Vector{Real}}, Matrix{Real}}; color = ..., ...)
. The x-axis must be shared across the line vectors.
One thing I'm not sure of is how the example plot you have might work in this type of API - maybe setting each y-value before the area is supposed to start to 0? Not sure if that would map well to a polygon.
The polygon could be created by simply appending points[series_i]
and reverse(points[series_i-1])
or so, and it would have to be closed such that the last point of the vector of points is equal to the first point.
Feature description
Given a collection of
N
vectors (in the form of a matrix or a vector of vector), plotN
lines computed as the cumulated sum (cumsum
). Right now this could be done withAdditionally it would be great if one could fill in between the lines.
For plot types, please add an image of how it should look like
Here is an example of what one obtain using
git-of-theseus