AttributeError: Unknown property axisbg AttributeError: Unknown property axisbg python python

AttributeError: Unknown property axisbg


Replace the below line of code

ax = plt.axes(axisbg='#E6E6E6')

with

ax = plt.axes(facecolor='#E6E6E6')