Skip to content

Incorrect marker style in scatter3d #2982

@brokenhammer

Description

@brokenhammer

I was using plotly inside jupyter notebook and I wanted to change the border width of markers in a scatter3d plot. It turns out the property 'marker.line.with' does not work. While in the 2d scatter plot, this property just works fine in jupyter notebook.
Here is the code I used to generate the scatter3d plot

import plotly.graph_objects as go
# Generate example data
import numpy as np
np.random.seed(1)

x = np.random.uniform(low=3, high=6, size=(50,))
y = np.random.uniform(low=3, high=6, size=(50,))
z = np.random.uniform(low=3, high=6, size=(50,))

# Build figure
fig = go.Figure()

# Add scatter trace with medium sized markers
fig.add_trace(
    go.Scatter3d(
        mode='markers',
        x=x,
        y=y,
        z=z,
        marker=dict(
            color='red',
            size=10,
            opacity=0.8,
            line=dict(
                color='black',
                width=5
            )
        ),
        showlegend=False
    )
)

image

Even if I change the 'marker.line.width' to a very large number, like 50, the plot does not change at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogbugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions