AttributeError:‘AxesSubplot’object has no attribute‘bar_label’


Using bar in Matplotlib_ An error was encountered in the label function:
attributeerror: 'axessubplot' object has no attribute 'bar_ label'


Because the version of Matplotlib is too low, you need to reinstall Matplotlib (enter the following command in the console)

① Uninstall Matplotlib

conda uninstall matplotlib

② Download again

pip install matplotlib

Read More: