1

Using seaborn I want to change the color of the outlier markers to red. I also want to reduce the width of the figure to get rid of the whitespcace.

This is my current code and the graph it produces:

import seaborn as sns
import matplotlib.pyplot as plt

rbp_box = sns.boxplot(data=df_raw, y="Resting blood pressure", color="red", flierprops={"marker": "x"}, width=0.2)
rbp_box.set(xlabel='', ylabel='mm Hg', title='Resting blood pressure box plot')

box plot

0 Answers0