这是我用python绘制grapy的代码。我的问题是图像被保存但它是空的。我看不到相关图。这是什么问题?
from matplotlib import pyplot as plt
movies = ["Annie Hall", "Ben-Hur", "Casablanca", "Gandhi", "West Side
Story"]
num_oscars = [5, 11, 3, 8, 10]
xs = [i + 0.1 for i, _ in enumerate(movies)]
plt.bar(xs, num_oscars)
plt.savefig('path/my_figure.png')