In Seaborn, I can assign the color of mean marker by providing meanprops e.g. :
meanprops: {'marker': 'o', 'markeredgecolor': c,
'markerfacecolor': 'none', 'markersize': 4}
However, if I make a plot using hue, this will set same colour of mean to all the categories. How can i also apply hue color to mean also.
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
df_merge = pd.DataFrame(data={'AOD_440nm': np.random.rand(20),
'month': np.tile(['Jan','Feb'], 10),
'kind': np.repeat(['A', 'B'], 10)})
fig,ax = plt.subplots()
sns.boxplot(x='month', y='AOD_440nm', hue='kind', data=df_merge,
showfliers=False, whis=[5, 95],
palette=sns.color_palette(('r', 'k')),
showmeans=True)
for i, artist in enumerate(ax.artists):
# Set the linecolor on the artist to the facecolor, and set the facecolor to None
col = artist.get_facecolor()
artist.set_edgecolor(col)
artist.set_facecolor('None')
In short, how can I change colour of means?

