Histogram Plots

Snippet code to quickly implement histogram plots in Python

import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt

%matplotlib inline

Rendering the Plot

plt.figure(figsize=(9,6))
_ = plt.hist(x_sample, ec='black', bins=15)
plt.xlabel('X-Bins')
plt.ylabel('X-Counts')