trace1 = go.Bar(
x=(stock["Unnamed: 0"]),
y=stock["s"],
name='推销'
)
trace2 = go.Bar(
x=stock["Unnamed: 0"],
y=stock["m"],
name='管理'
)
trace3 = go.Bar(
x=stock["Unnamed: 0"],
y=stock["r"],
name='研发'
)
data = [trace1, trace2,trace3]
layout = go.Layout(title="营业费用",barmode='stack',legend=dict(
x=1,
y=1
),
xaxis=dict(titlefont=dict( size=10 ) )
)
fig = go.Figure(data=data, layout=layout)
py.iplot(fig, filename='overlaid histogram')
图在此 https://plot.ly/~sigmaplot/39
因为我把2018.Q2那些字 放在x变量
想请教在图上显示时有无办法让这些字体(Q2Q3那边)变大 因为我找到的都是真对x-axis
再调整 谢谢回复