Tôi cố gắng để sử dụng ô phụ tương tự như những gì đang được hiển thị ở đây:plot.subplot ---> 'Hình' đối tượng không có thuộc tính 'âm mưu'
http://matplotlib.org/examples/pylab_examples/subplots_demo.html
axarr = plt.subplots(len(column_list), sharex=True)
subp_num = 0
for j in column_list:
axarr[subp_num].plot(df.values[2:,j])
subp_num = subp_num + 1
sau đó tôi có được điều này lỗi:
axarr[subp_num].plot(df.values[2:,j])
AttributeError: 'Figure' object has no attribute 'plot'
Bất kỳ gợi ý nào về những gì tôi đang làm sai? Cảm ơn
Rất cám ơn jonrsharp, nó chỉ làm việc thêm "f". – user2564259