import matplotlib.pyplot as plt
import numpy as np
x = np.random.normal(0, 1, size=1000)
fig = plt.figure()
ax = fig.add_subplot(111)
ax.hist(x, bins=50, histtype='step', fill=None)
plt.show()
Python - Removing vertical bar lines from histogram