Bug in changing Title persian(arabic) fonts in plotly.GO
未关闭
还没有人认领这个 Issue。
bug
P3
- 主要语言
- Python
- 星标
- 18.8k
- 派生
- 2.8k
- 平均合并
- 16 小时 26 分钟
- 30 天内合并 PR
- 21
描述
Hi, I've just wanted to change the title persian font of a graph object but this approach does not change anything at all.
fig.update_layout(barmode='group', xaxis_tickangle=-45 ,title={'y':0.98, 'x':0.5,
'text':f"فروش ماهانه <b>{symbol}</b>",'xanchor':'center', 'yanchor':'top',
'font':{'size':40, 'family':"Droid Sans"}}, bargroupgap=0.01, autosize=False, width=1280, height=720,
margin=dict(l=50,r=10,b=0,t=50), legend=dict(traceorder='normal', font={'size':15},orientation="h",yanchor="middle",y=-0.12,xanchor="auto",x=1),
yaxis_title='<b>فروش ماهانه (میلیاردتومان)</b>',font=dict(
family="Arial",
size=15
),template="plotly_dark")
with changing the title dict args font
even Google standard arabic(persian) fonts does not change anything.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
未指定源文件或测试。首先在 Plotly Python 环境中复现所提供的 update_layout 代码片段,并检查渲染后的标题如何处理所请求的波斯语字体系列。完成的标准是标题明显使用所选字体,并针对所报告的配置进行回归检查。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- plotly, python
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100