python plotly 多个表格_Plotly Python - 更改表格
的字體
我有一張表格,我制作了一個(gè)表格,我想將字體更改為'Gill Sans'。Plotly Python - 更改表格
我無法使其更改。這可能嗎?
這是我的代碼:
groupA = new_df.groupby('Call').agg({'TotalGrantValue':sum, 'FirstReceivedDate':'count'}).rename(columns={'FirstReceivedDate':'Count'})
groupA['TotalGrantValue'] = groupA['TotalGrantValue'].map('{:,.2f}'.format)
colorscale = [[0, '#7f7f7f'],[.5, '#F1EDED'],[1, '#ffffff']]
table = ff.create_table(groupA, index=True,colorscale=colorscale, height_constant=14, index_title='Date')
table.layout.width = 700
for i in range(len(table.layout.annotations)):
table.layout.annotations[i].font.size = 10
plotly.offline.iplot(table, config={"displayModeBar": False}, show_link=False, filename='index_table_pd')
2017-08-09
ScoutEU
總結(jié)
以上是生活随笔為你收集整理的python plotly 多个表格_Plotly Python - 更改表格的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 中国十大光伏公司有哪些?
- 下一篇: 铃木维特拉汽车座椅改成奥迪A6车座椅大概