Matplotlib figure facecolor (background color)

前端 未结 4 700
無奈伤痛
無奈伤痛 2020-11-27 13:05

Can someone please explain why the code below does not work when setting the facecolor of the figure?

import matplotlib.pyplot as plt

# create figure instan         


        
4条回答
  •  攒了一身酷
    2020-11-27 13:45

    If you want to change background color, try this:

    plt.rcParams['figure.facecolor'] = 'white'
    

提交回复
热议问题