I need to add hatches to a categorical box plot.
What I have is this:

What I need is something like this (with the median lines):
And what I have tried is this code:
exercise = sns.load_dataset("exercise")
g = sns.catplot(x="time", y="pulse", hue="kind", data=exercise, kind="box")
bars = g.axes[0][0].patches
hatches=['//','..','xx','//','..','xx','//','..','xx']
for pat,bar in zip(hatches,bars):
bar.set_hatch(pat)
That only generates the first figure. The idea for lines 3-6 comes from this question. But the idea to get axes[0][0] in line 3 comes from this question.
Because FacetGrids don't have attributes like patches or containers, it makes it harder to adapt the answers about hatches in individual plots to categorical plots, so I couldn't figure it out.




