seaborn histogram set x and y code example
Example 1: plot histogram in seaborn
sns.distplot(gapminder['lifeExp'], kde=False, color='red', bins=100)
plt.title('Life Expectancy', fontsize=18)
plt.xlabel('Life Exp (years)', fontsize=16)
plt.ylabel('Frequency', fontsize=16)
Example 2: kde = false
kdebool, optional
Whether to plot a gaussian kernel density estimate.