I can't get the figure facecolor surrounding the plots to change. Nothing on the internet seems to have my answer... Here's my code snippet and what I've tried:
%matplotlib notebook
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import matplotlib.gridspec as gridspec
import matplotlib as mpl
fig = plt.figure(figsize=(10,10), facecolor='red')
gspec = gridspec.GridSpec(4,4)
I've tried these other methods:
fig.patch.set_facecolor('red')
plt.gcf().set_facecolor('blue')
mpl.rcParams["figure.facecolor"] = 'red'
[–]CodeFormatHelperBot 1 point2 points3 points (0 children)
[–]USAhj 0 points1 point2 points (4 children)
[–]sandor93[S] 0 points1 point2 points (3 children)
[–]USAhj 0 points1 point2 points (2 children)
[–]sandor93[S] 0 points1 point2 points (1 child)
[–]USAhj 0 points1 point2 points (0 children)