Reputation: 3396
Is there a way to turn off the top marginal plot in a Seaborn Jointplot?
tips = sns.load_dataset('tips') g = sns.jointplot( data=tips, x="total_bill", y="tip", hue="smoker", )
Upvotes: 9
Views: 2778
Reputation: 50162
Perhaps just call remove on .ax_marg_x.
remove
.ax_marg_x
g.ax_marg_x.remove()
Output:
(Note that ax_marg_y and ax_joint are the remaining plots, as detailed in the JointGrid docs).
ax_marg_y
ax_joint
JointGrid
Upvotes: 7