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

[BUG] Ribbons with NaN broken #2923

Open
yha opened this issue Aug 19, 2020 · 2 comments
Open

[BUG] Ribbons with NaN broken #2923

yha opened this issue Aug 19, 2020 · 2 comments

Comments

@yha
Copy link
Member

yha commented Aug 19, 2020

Details

plot(10rand(30), ribbon=[1:10;fill(NaN,10);1:10])

with GR:
tmp
(maybe related to #1920?)

with Plotly:
tmp

In pyplot, this works fine

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) x
pyplot x
plotly x
plotlyjs x
pgfplotsx x
inspectdr x

(tested with Plots master)

@BeastyBlacksmith
Copy link
Member

I can't reproduce the figrure for GR on 1.6.4 ( I get a line without ribbon instead).
However, probably you want something like

plot(10rand(30), ribbon=[1:10;fill(0,10);1:10])

?

@yha
Copy link
Member Author

yha commented Sep 16, 2020

On Plots 1.6.4 (julia 1.4.2), I still see original behavior I reported on both GR (0.52.0) and PlotlyJS (0.14.0).

However, probably you want something like

plot(10rand(30), ribbon=[1:10;fill(0,10);1:10])

That's almost, but not quite, the behavior I would expect when the ribbon data has NaNs or missings. The pyplot backend gets it right:

plot(10rand(30), ribbon=[1:10;fill(NaN,10);1:10])

pyplot-ribbon-nan
Compare with plot(10rand(30), ribbon=[1:10;fill(0,10);1:10]):
tmp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants