Set the legend outside the graphics

Hi!
For those interested, I shared a trick on StackOverflow in order to set the legends outside of the graphics, using Matplotlib:


Regards,
Michaël