Axis Ticks not flushed with Graph Border
未关闭
还没有人认领这个 Issue。
bug
P3
- 主要语言
- JavaScript
- 星标
- 18.3k
- 派生
- 2k
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 28
描述
I am having some frustration trying to figure out (searching, trial and error) how to flush Plotly axis and the zero tick.
here is my code:
import plotly.go_objects as go
fig = go.Figure()
fig.add_trace(
go.Scatter(
x=x,
y=y,
name=label,
mode="markers",
marker=dict(size=10),
opacity=0.5,
)
)
fig.update_layout(
font_family="Arial",
template="simple_white",
title={"x": 0.5, "y": 0.9, "xanchor": "center", "yanchor": "top"},
yaxis=dict(mirror=True, ticks="outside", range=[0, 1]),
xaxis=dict(mirror=True, ticks="outside"),
legend=dict(
yanchor="top", xanchor="right", borderwidth=0.5, x=0.995, y=0.99
),
)
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,使用提供的 Plotly 图表配置重现 issue 中描述的坐标轴刻度对齐,并将结果与链接的 Stack Overflow 帖子进行比较。追踪 JavaScript 的坐标轴和布局渲染入口;完成的标准是零刻度和坐标轴刻度在视觉上与图表边框对齐,同时不使其他坐标轴布局发生回归。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100