When using numbers, you can easily change the color of the spine with:
ax.spines['bottom'].set_color('#dddddd') ax.spines['top'].set_color('#dddddd') ax.spines['right'].set_color('red') ax.spines['left'].set_color('red')
To change only ticks, use the following:
ax.tick_params(axis='x', colors='red') ax.tick_params(axis='y', colors='red')
And to change only the labels:
ax.yaxis.label.set_color('red') ax.xaxis.label.set_color('red')
And finally, the name:
ax.title.set_color('red')
SaiyanGirl Aug 21 2018-12-18T00: 00Z
source share