I use seaborn to create a plot according to this example .
import numpy as np import pandas as pd import seaborn as sns sns.set(style="white") rs = np.random.RandomState(5) mean = [0, 0] cov = [(1, .5), (.5, 1)] x1, x2 = rs.multivariate_normal(mean, cov, 500).T x1 = pd.Series(x1, name="$X_1$") x2 = pd.Series(x2, name="$X_2$") g = sns.jointplot(x1, x2, kind="kde", size=7, space=0)
However, when I change the last line of code to
g = sns.jointplot(x1, x2, kind="kde", size=7, space=0, xlim=(-5,5), ylim=(-5,5))
background color does not change correctly: 
How can I fix the background color so that it fills the whole plot?
source share