I am trying to figure out to add transparency or alpha to sns.pointplot
. I have a plot that looks like this:
I am trying to add the transparency or alpha to it, but no luck. I know I can set alpha in sns.kdeplot
but not sure how to do it on sns.pointplot
.
plt.rcParams['figure.autolayout'] = True
fig, ax = plt.subplots()
q1 = sns.pointplot(df1['Q53Val'][0:191], color='#22b584', dodge = True, errwidth=50, scale = 7.5, plot_kws=dict(alpha=0.3)).set(xlim=0)
q2 = sns.pointplot(df1['Q53Val'][192:], color='#f77f2f', dodge = True , errwidth=50, scale = 7.5, plot_kws=dict(alpha=0.3)).set(xlim=0)
ax.set(ylabel=None)
ax.set(xlabel=None)
ax.spines["top"].set_visible(False)
ax.spines["right"].set_visible(False)
ax.spines["bottom"].set_visible(False)
ax.spines["left"].set_visible(False)
plt.xticks([0, 0.2, 0.4, 0.6, 0.8, 1.0])
plt.xticks([])
plt.yticks([])