为什么当我第一次按shift& amp;输入?在图表出现之前,我必须按两次shift键。按下shift后输入一次,输出显示
<matplotlib.figure.Figure at 0x2560f0e8630>
这是我的代码:
import matplotlib.pyplot as plt; plt.rcdefaults()
import numpy as np
import matplotlib.pyplot as plt
objects = ('Python', 'C++', 'Java', 'Perl', 'Scala', 'Lisp')
y_pos = np.arange(len(objects))
performance = [10,8,6,4,2,1]
plt.bar(y_pos, performance, align='center', alpha=0.5)
plt.xticks(y_pos, objects)
plt.ylabel('Usage')
plt.title('Programming language usage')
plt.show()