add line legend. fixes #3