Better kobe function

Change in kobe function to have a better plot when there are several plots.
Add xpd parameter to have legend outside of the plot.