I want to change the background color of my x axis and y axis.
I tried ax.set_axis_bgcolor('k')
But I get an error AttributeError: 'AxesSubplot' object has no attribute 'set_axis_bgcolor'
Upon further internet search I found out that 'set_axis_bgcolor()' has been depreciated. A GitHub thread on this topic suggests using 'set_facecolor()', which does not address ticks background color.
How can I change x or y ticks background color?