正如您所看到的,代码生成了一个不太清晰的条形图,我想让图形更大,以便可以更好地看到值。这不行。什么是正确的方法?x 是一个数据框,x['user']是图中的 x 轴,x['number']是 y。
import matplotlib.pyplot as plt
%matplotlib inline
plt.bar(x['user'], x['number'], color="blue")
plt.figure(figsize=(20,10))
带有 plt.figure 的线不会改变初始尺寸。
相关分类