Incorrect marker style in scatter3d
未关闭
还没有人认领这个 Issue。
bug
P3
- 主要语言
- Python
- 星标
- 18.8k
- 派生
- 2.8k
- 平均合并
- 16 小时 26 分钟
- 30 天内合并 PR
- 21
描述
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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先在 Jupyter notebook 中运行提供的 go.Scatter3d 示例,并检查 Scatter3d marker.line.width 入口点。将其行为与 2D scatter 的情况进行比较;当 marker 边框宽度发生可见变化,且该行为由回归测试覆盖时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- jupyter-notebook, python
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100