-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
Description
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
)
)
Even if I change the 'marker.line.width' to a very large number, like 50, the plot does not change at all.
jahanclaes and qivigor