Center Title by default for px.imshow
未关闭
适合新手
还没有人认领这个 Issue。
feature
P3
- 主要语言
- Python
- 星标
- 18.8k
- 派生
- 2.8k
- 平均合并
- 16 小时 26 分钟
- 30 天内合并 PR
- 21
描述
Issue:
Many chart-making functions such as px.line, px.scatter, px.bar center the title by default (desired), but the px.imshow function displays the title on the left margin instead (not desired).
import plotly.express as px
fig = px.imshow(mat, title="My Title")
Current Workaround:
fig.update_layout(title={'text': "My Title", 'x':0.485, 'xanchor': 'center'}) # manually center the title
Proposed Solution:
The px.imshow function should center the title by default.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 issue 中链接的 px.imshow 入口点开始,将其标题处理方式与 px.line、px.scatter 和 px.bar 进行比较。检查现有的 Plotly Express 图像 figure 测试,然后更新覆盖范围,使标题默认居中,并验证是否生成了预期的 layout。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- data-visualization
- Issue 类型
- 功能
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 62/100