I am trying to show box-plot of some Ratings data from a Pandas DataFrame. I want to get meanline shown in Box-plot. When I pass meanline=True
, the line shows as doted but when I pass parameter linestyle='-'
or linestyle='--'
or however in other way it shows an error
TypeError: boxplot() got an unexpected keyword argument 'linestyle'
My code is
sns.boxplot(x="rating", data=df, whis=5, color='None', showmeans=True, meanline=True, linestyle='-', linewidth=5)
If I remove color
parameter, it's default color shows that's almost faded blue. But when I pass color='None'
then it shows box as black and meanline is at least visible then. I have tried a lot of different combinations of parameters to check if it works but in vein.
Now, I want
- Full meanline not doted in black color so that it will be clearly visible
Remember! the main issue is that error with linestyle
parameter not with the designing of Box.
Hope so I explained it enough