I've tried using the answer to Hide Axis Titles in Seaborn, which applies to heatmap
, but end up with two plots instead: the first being an empty grid without axis titles, the second being the PairGrid
but still with axis titles. How can I hide the axis titles on the PairGrid
?
import matplotlib.pyplot as plt
import seaborn as sns
iris = sns.load_dataset('iris')
fig, ax = plt.subplots(1, 1, figsize = (10, 10), dpi=300)
sns.PairGrid(iris).map_diag(sns.distplot)
ax.set_ylabel('')
ax.set_xlabel('')