I want to add an axis line to my plot. I've tried other functions to set tick but it didn't work.
warnings.filterwarnings('ignore')
xvalues = np.arange(2)
# Graph - Grouped by class, survival and sex
r = sns.factorplot(x="Sex", y="Survived", col="Pclass", data=titanicData_clean,
saturation=.5, kind="bar", ci=None, size=5 ,aspect=.8)
r.fig.suptitle('class, survival and sex')
r.fig.subplots_adjust(top=0.9)
plt.xticks(xvalues)
plt.show()
# Fix up the labels
(r.set_axis_labels('', 'Survival Rate')
.set_titles("Class {col_name}")
.set(ylim=(0, 1))
.despine(left=True, bottom=True));