Python - Removing vertical bar lines from histogram
<p>I'm wanting to remove the vertical bar outlines from my histogram plot, but preserving the "etching" of the histogram, if that makes since.</p>

<pre><code>import matplotlib.pyplot as plt
import numpy as np  

bins = 35

fig = plt.figure(figsize=(7,6))
ax = fig.add_subplot(111)

ax.hist(subVel_Hydro1, bins=bins, facecolor='none', 
        edgecolor='black', label = 'Pecuiliar Vel')
ax.set_xlabel('$v_{_{B|A}} $ [$km\ s^{-1}$]', fontsize = 16)
ax.set_ylabel(r'$P\ (r_{_{B|A}} )$', fontsize = 16)
ax.legend(frameon=False)
</code></pre>

<p>Giving</p>

<p><a href="http://i.stack.imgur.com/DtEHe.png" rel="nofollow"><img src="http://i.stack.imgur.com/DtEHe.png" alt="enter image description here"></a></p>

<p>Is this doable in matplotlibs histogram functionality? I hope I provided enough clarity.</p>

<p>In <code>pyplot.hist()</code> you could set the value of <code>histtype = 'step'</code>. Example code:</p>

<pre><code>import matplotlib as mpl
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()
</code></pre>

<p>Sample output:</p>

<p><a href="http://i.stack.imgur.com/621Vo.png"><img src="http://i.stack.imgur.com/621Vo.png" alt="enter image description here"></a></p>

python matplotlib histogram