hadron_obs: added legending functionality to plotting function