Incorrect Legend in RooFit fit plot

Thanks for the response.

I tried another thing. Instead of the 4 lines where I am designing the Legend, I just wrote

gPad → BuildLegend();

This identified the markers correctly but it is giving two extra entries in the Legend. Do you know why?