seaborn returns a matplotlib.axes object which you can manipulate just like any other matplotlib object,
import matplotlib.pyplot as plt
ax = sns.boxplot(x=your_data)
# getp shows you all the properties of an axes object
plt.getp(ax)
You can then use plt.setp to manipulate all properties, but it's easier to do this:
Since it's a fancier version of a matplotlib.boxplot, you can also use the same arguments:
ax = sns.boxplot(x=your_data,medianprops={'color':'red'})
will give you a red line for the median, you can also change the box lines:
ax = sns.boxplot(x=tips["total_bill"],medianprops={'color':'red'},boxprops = dict(linestyle='--', linewidth=3, color='darkgoldenrod'))
Here's a gallery with examples: https://matplotlib.org/3.1.0/gallery/statistics/boxplot.html
Hi,
Please use a different website (such as imgbb) to host the image. The website you're currently using has certain protective measures that does not allow images to be rendered properly on Biostars.
I put imgbb link now, but for me does not appear any image...
Please see How to add images to a Biostars post to add your images properly. You need the direct link to the image, not the link to the webpage that has the image embedded (which is what you have used here)
Oh sorry RamRS, I think that's right in this time.
No need for the sorry, it's just a bit of a learning curve :-)