5

enter image description here

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.

enter image description here

So any methods to do this? Thanks

Simon
  • 9,150
  • 15
  • 55
  • 113
Ming Jia
  • 51
  • 1
  • 3

1 Answers1

0

You can try this:

import matplotlib.pyplot as plt
plt.rcParams['axes.facecolor'] = 'silver'
Tyson
  • 61
  • 15