Matplotlib does not display the hatch of a patch in a legend
<p>I'm not sure if this is a bug or I'm doing something wrong. My goal is to display a hatch in the legend but it does not work. The code I use for that is</p>

<pre><code>import matplotlib.patches as mpatches
...
def plot_legend(ax):
    ep = mpatches.Patch(color=[1.0, 0.5, 1.0, 1], hatch='/',
        label=r'$\pi_e\ free$')
    cp = mpatches.Patch(color=[1.0, 1.0, 1.0, 1], label='$\pi_e = exp(-60)$')
    #ax.legend(handles=[ep, cp], bbox_to_anchor=(1.05, 1), 
    #    loc=2, borderaxespad=0.)

    pyl.legend(handles=[ep, cp],
         loc=1)

    return
</code></pre>

<p>The results is the following:</p>

<p><a href="https://i.stack.imgur.com/3C1eY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3C1eY.png" alt="The weird color in the legend is to show that is working."></a></p>

<p>The version of matplotlib I'm using is 1.5.1 in a mac computer.</p>