ZOrder parameter Breaks Plotly!
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 42/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- plotly, python
调研方向
首先将提供的 make_subplots 和 Scatter/Candles 示例缩减为一个可复现的案例,比较在 Dash 和 Panel 中有无 zorder 时的行为。检查初始加载和图形重新生成;当 zorder 不再破坏这两个应用中的任何一个时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Hi, if I set zorder=2 or zorder=3 parameter in Candles, Scatter then the Plotly application will be broken!
It happens with Dash and Panel. So I think the problem is woth Plotly itself.
It happens when I regenerate a figure but sometimes it happens when I open an application first time.
I've recorded a video as it's hard to explain.
https://drive.google.com/file/d/1CiBZgWk60Q--nRdtFyQcyXDZFpfjRgv5/view?usp=drive_link
Some code:
fig: go.Figure = make_subplots(rows=6, cols=1,
shared_xaxes=True,
vertical_spacing=v_subplot_space, # Reduce space between plots
row_heights=row_heights) # Allocate space (Price gets most)
v_subplot_space = 0.001 # vertical_spacing
row_heights=[1.0, 0.1, 0.1, 0.1, 0.1, 0.1]
fig: go.Figure = make_subplots(rows=6, cols=1,
shared_xaxes=True,
vertical_spacing=0.005, # Reduce space between plots
row_heights=row_heights) # Allocate space (Price gets most)
# Bollinger Bands
fig.add_trace(go.Scatter(
hovertext=candles_df[CandlesTypes.DAY_NAME],
x=candles_df[CandlesTypes.DATETIME], y=candles_df[CandlesTypes.BB_UPPER],
name="BB Upper",
line=dict(color='rgba(150, 150, 150, 0.5)', width=1,), # Light grey
zorder=1,
hoverinfo="skip",
), row=1, col=1)
fig.update_yaxes(
row=1, col=1,
)
fig.update_xaxes(
dtick="D1", # Set grid interval to 1 day
matches='x',
)
- 主要语言
- Python
- 星标
- 18.8k
- 派生
- 2.8k
- 平均合并
- 13 小时 41 分钟
- 30 天内合并 PR
- 21
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
plotly/plotly.py 的其他 Issue
-
P3 size: 1 task
难度 2/5 1-3 小时 新手友好度 65/100
-
P3 size: 1 task
难度 2/5 1-3 小时 新手友好度 72/100
-
bug P1
难度 1/5 1 小时以内 新手友好度 68/100
-
feature P3
难度 2/5 1-3 小时 新手友好度 62/100
-
feature P3
难度 2/5 1-3 小时 新手友好度 72/100
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 90/100
learningequality/ricecooker#747 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 76/100
run-llama/llama_index#23199 ·
-
难度 2/5 1-3 小时 新手友好度 84/100
KhronosGroup/glTF-Blender-IO#2769 ·