以下代码生成了嵌入的图,但是由于我不明白的原因,定义图大小(figsize)的参数显然被忽略了。
plt.figure(figsize=(15, 15))
ax = SP500_Growth_quantiles.plot(kind = 'bar')
ax.set_title('Quantiles of the Probability Distribution of S&P 500 Growth in 2018')
ax.set(ylabel = 'S&P 500 Growth in 2018', xlabel = 'Quantile')
您的建议将不胜感激。
答案 0 :(得分:0)
你是说
fig, ax = plt.subplots(figsize=(15, 15))
SP500_Growth_quantiles.plot(kind = 'bar', ax=ax)
ax.set_title('Quantiles of the Probability Distribution of S&P 500 Growth in 2018')
ax.set(ylabel = 'S&P 500 Growth in 2018', xlabel = 'Quantile')