Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ribbons #20

Closed
tbreloff opened this issue Sep 17, 2015 · 4 comments
Closed

Ribbons #20

tbreloff opened this issue Sep 17, 2015 · 4 comments

Comments

@tbreloff
Copy link
Member

Similar to this example, I'd like an easy way to add this to a plot. I think it should be attached to a series (and not its own series).. possibly with a ribbon keyword arg. Some possible syntax:

# add a ribbon, centered around y, with width 0.5
plot(y; ribbon = 0.5)

# add a ribbon, centered around y, where the width varies randomly
plot(y; ribbon = rand(length(y)))

# tuple of vectors... explicit min/max coords
plot(y; ribbon = (y-0.2, y+0.8))

# vector of tuples... explicit min/max coords
plot(y; ribbon = [(z-0.5, z+rand()) for z in 1:length(y)])

Probably should support ribboncolor, etc args as well.

@tbreloff
Copy link
Member Author

This might be easiest to implement as a fillfrom argument... since fillto is defined to fill an area from y to fillto... this means we are already defining a fillfrom value and implicitly setting it to y. Make it explicit (default is that y == fillfrom) and we can draw ribbons.

That being said, I still think the ribbon argument can be shorthand for this functionality...

@diegozea
Copy link
Contributor

+1 to ribbons on Plots.jl. Also would be great to have error bars like Gadfly on this package.

@tbreloff
Copy link
Member Author

Heh... yes! I was thinking about that yesterday, and never got around to creating an issue... gonna do that now and link from here.

@tbreloff
Copy link
Member Author

Closing in favor of #143

t-bltg pushed a commit that referenced this issue Oct 6, 2022
* comment out debug shows

* fix defaults a bit

* remove shows

* remove shows

* remove shows

Co-authored-by: Simon Christ <SimonChrist@gmx.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants