Skip to content

go.Scatter bug on filled area rendering #1008

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

Closed
jjnurminen opened this issue May 14, 2018 · 3 comments
Closed

go.Scatter bug on filled area rendering #1008

jjnurminen opened this issue May 14, 2018 · 3 comments

Comments

@jjnurminen
Copy link

The plotly examples suggest doing filled curves by go.Scatter. I'm trying to fill a rectangular box. The following code works fine:

import plotly
import plotly.graph_objs as go

yval = 1e2
ntrace = go.Scatter(x=[1, 10, 10, 1], y=[yval, yval, -yval, -yval], fill='toself')
fig = go.Figure(data=[ntrace])
fig['layout']['yaxis'].update(range=[-.5, .5])
plotly.offline.plot(fig)

Result as expected:
newplot

However after changing to yval = 1e3, I get:

newplot 2

In other words, zooming the plot with the bigger rectangle seems to screw up its dimensions.

@jonmmease
Copy link
Contributor

Hi @jjnurminen , I just tried this out with version 3.2.1 and I'm not seeing the issue in your screenshots above. If you're still interested, could you give it another try with version 3.2+? Thanks!

@jjnurminen
Copy link
Author

Thanks @jonmmease

I just updated to 3.2.1. If I change to yval = 1e3 in the code above, I get the following:

newplot

So it's screwed up in slightly different way.

@jonmmease
Copy link
Contributor

Moving this issue to the plotly.js tracker at plotly/plotly.js#3147. Thanks!

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