Skip to content

Multiple scattercarpet's #1398

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
pfbuxton opened this issue Jan 21, 2019 · 2 comments
Closed

Multiple scattercarpet's #1398

pfbuxton opened this issue Jan 21, 2019 · 2 comments
Labels
bug something broken

Comments

@pfbuxton
Copy link

I have several carpet's and several scattercarpet's.
If you run this then the second scattercarpet (trace 3) is not visible.
If you click trace 2 off then trace 3 becomes visible.

import dash
import dash_core_components as dcc
import dash_html_components as html

import plotly.graph_objs as go

app = dash.Dash(__name__)

traces = []

traces.append(go.Carpet(
    a = [4, 4, 4, 4.5, 4.5, 4.5, 5, 5, 5, 6, 6, 6],
    b = [1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3],
    y = [2, 3.5, 4, 3, 4.5, 5, 5.5, 6.5, 7.5, 8, 8.5, 10],
    aaxis = dict(
        tickprefix = 'a = ',
        ticksuffix = 'm',
        smoothing = 1,
        minorgridcount = 9
    ),
    baxis = dict(
        tickprefix = 'b = ',
        ticksuffix = 'Pa',
        smoothing = 1,
        minorgridcount = 9
    ),
    carpet='c0'
))

traces.append(go.Carpet(
    a = [4, 4, 4, 4.5, 4.5, 4.5, 5, 5, 5, 6, 6, 6],
    b = [1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3],
    y = [22, 23.5, 24, 23, 24.5, 25, 25.5, 26.5, 27.5, 28, 28.5, 30],
    aaxis = dict(
        tickprefix = 'a = ',
        ticksuffix = 'm',
        smoothing = 1,
        minorgridcount = 9
    ),
    baxis = dict(
        tickprefix = 'b = ',
        ticksuffix = 'Pa',
        smoothing = 1,
        minorgridcount = 9
    ),
    carpet='c1'
))

traces.append(go.Scattercarpet(
    a = [4, 4.5, 5, 6],
    b = [2.5, 2.5, 2.5, 2.5],
    line = dict(
        shape = 'spline',
        smoothing = 1,
        color = 'blue'
    ),
    mode='lines',
    carpet='c0'
))

traces.append(go.Scattercarpet(
    a = [4, 4.5, 5, 6],
    b = [2.5, 2.5, 2.5, 2.5],
    line = dict(
        shape = 'spline',
        smoothing = 1,
        color = 'red'
    ),
    mode='lines',
    carpet='c1'
))

app.layout = html.Div(children=[
    html.H1(children="Multiple Scattercarpet's"),

    dcc.Graph(
        id='example-graph',
        figure=dict(
            data=traces,
            layout = dict()
        )
    )
])

if __name__ == '__main__':
    app.run_server(debug=True)

problem

@jonmmease
Copy link
Contributor

Thanks for the report @pfbuxton

@plotly/plotly_js would one of you have time to try to reproduce this in plotly.js and open an issue there?

@etpinard
Copy link
Contributor

Moved to plotly/plotly.js#3459

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

No branches or pull requests

3 participants