Skip to content

go.Scatter bug on filled area rendering #1008

@jjnurminen

Description

@jjnurminen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions