User defined legend in python
I have this plot in which some areas between curves are being filled by definition. Is there any way to include them in legend? Especially where those filled areas are overlapped and as well as that a new and different color is being appeared.

<p>Or there is possibility to define an arbitrary legend regardless of the curves' data?
<a href="https://i.stack.imgur.com/NtJ74.png" rel="nofollow"><img src="https://i.stack.imgur.com/NtJ74.png" alt="enter image description here"></a></p>

<p>Yes, you are absolutely right  ian_itor,  tacaswell and Jean-SÃ©bastien, user defined legend seems to be the unique solution, in addition I made different <em>linewidth</em> for those area to be distinguishable from the curves, and playing with <em>alpha</em> got the right color.</p>

<pre><code>handles, labels = ax.get_legend_handles_labels()
display = (0,1,2,3,4)

overlap_1 = plt.Line2D((0,1),(0,0), color='firebrick', linestyle='-',linewidth=15, alpha = 0.85)
overlap_2= plt.Line2D((0,1),(0,0), color='darkolivegreen',linestyle='-',linewidth=15, alpha = 0.65)
over_lo_3= plt.Line2D((0,1),(0,0), color='indianred',linestyle='-',linewidth=15, alpha = 0.75) 

ax.legend([handle for i,handle in enumerate(handles) if i in display]+[overlap_1 , overlap_2 , overlap_3 ],
      [label for i,label in enumerate(labels) if i in display]+['D','F','G'])
</code></pre>

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

python matplotlib legend-properties