AttributeError: 'Axes' object has no property 'axes_class'

AttributeError: 'Axes' object has no property 'axes_class'
请问这个怎么解决呢,查了网上竟然没有相同的问题

img

axes_class是matplotlib 3.1.1+版中中才具备的属性
请题主查看是不是matplotlib库版本过低
如果是,则可以将其更新

望采纳!!!点击回答右侧采纳即可!!!Axes.axes_class属性是matplotlib 3.1.1版本中新增的属性,因此在旧版本中是不可用的。