Вы можете использовать ax_marg_x.patches
, чтобы повлиять на результат.
Здесь я использую его, чтобы сделать график по оси X белым, чтобы его не было видно (хотя поле для него осталось):
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
sns.set(style="white", color_codes=True)
x, y = np.random.multivariate_normal([2, 3], [[0.3, 0], [0, 0.5]], 1000).T
g = sns.jointplot(x=x, y=y, kind="hex", stat_func=None, marginal_kws={'color': 'green'})
plt.setp(g.ax_marg_x.patches, color="w", )
plt.show()
Вывод:
![Seaborn Plot](https://i.stack.imgur.com/8jL89.jpg)