This pic is plot by R, and what I want to know is how do it with matplotlib.
I have tried the plt.title('aaa', backgroundcolor= 'silver')
, but it only change the background color where the text cover.
So any methods to do this? Thanks
This pic is plot by R, and what I want to know is how do it with matplotlib.
I have tried the plt.title('aaa', backgroundcolor= 'silver')
, but it only change the background color where the text cover.
So any methods to do this? Thanks
You can try this:
import matplotlib.pyplot as plt
plt.rcParams['axes.facecolor'] = 'silver'