splicing plot legend added