Skip to content

Color scale doesn't show up for Lines on Scatter3d plots #1085

Description

@ivirshup

The option showscale for plotly.graph_objects.scatter3d.Line doesn't make a color scale appear, or seem to do anything. Here's an example:

importnumpyasnpimportplotly.graph_objsasgox, y, z, c=np.random.random_sample((4, 10))
go.FigureWidget(data=[go.Scatter3d(
x=x,
y=y,
z=z,
mode="lines",
line=go.scatter3d.Line(
color=c,
showscale=True
)
)])

screen shot 2018-08-01 at 12 32 20 pm

While, for the equivalent marker plot:

go.FigureWidget(data=[go.Scatter3d(
x=x,
y=y,
z=z,
mode="markers",
marker=go.scatter3d.Marker(
color=c,
showscale=True
)
)])

screen shot 2018-08-01 at 12 32 33 pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions