Is there a way to separate the bars of different levels of the categorial variable (hue = "Session") with a blank space?
As you can see, I did this grouped barplot with seaborn, but the bars for each level of the variable "Session" are all attached.
How can I add a blank space?
I attached a similar graph done with ggplot in R. I want to obtein a similar result but with seaborn on another python library.
Here the snipped code:
desired_order = ["Ignored Visual Field","Attended Visual Field","Control"]
custom_palette = ["#A2142F", "#20B2AA", "#D95319"]
my_file_sham = my_file[my_file["Stimulation"]=="Sham"]
my_file_sham["Response_scaled"] = (my_file_sham["Response"]) * 100
fig_5 = sns.barplot(data=my_file_sham, x="Manipulation", y="Response_scaled", hue="Session", order= desired_order, palette=custom_palette, linewidth=3)
pal = ["#A2142F", "#20B2AA", "#D95319"]
color = pal * df.shape[1]
for p,c in zip(fig_5.patches,color):
p.set_color(c)
plt.show()