Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to show mean values on histogram in seaborn

import matplotlib.pyplot as plt
import seaborn as sns

%matplotlib inline

sns.distplot(xgb_errors, kde=True, rug=True);
plt.axvline(np.median(xgb_errors),color='b', linestyle='--')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #show #values #histogram #seaborn
ADD COMMENT
Topic
Name
2+3 =