How to use TLegend

Hello everyone,
i want to make a pad with marker used in my figure as a reference, i try TLegend but i don’t know what to insert?
my macro :
TNtuple *ntuple = new TNtuple(“ntuple”,“my ntuple”,“slat:z1:z2:z3:z4”);
then
ntuple->Fill( data…
then
ntuple->SetMarkerStyle(22);
ntuple->SetMarkerColor(3);
ntuple->Draw(“z1:slat”,"", “same”);

i tried this
TLegend *legend=new TLegend(0.13,0.45,0.44,0.87);
legend->AddEntry(“z1:slat”,“z1”,“p”);
legend->AddEntry(“z2:slat”,“z2”,“p”);
legend->SetTextSize(0.02);
legend->Draw();

now i have pad with z1and z2 but without markers??

any idea Please??

You cannot insert an TNtuple (or a TTree) expression in TLegend.
You can only insert objects (by name or by pointer) inheriting from TAttXXX.
In you case the simplest will be to get the histogram produced by the ntuple->Draw() command
(it is call htemp) and insert it.

what about if i want to use TPad and insert z1,z2,… with thier marker?

thank you ,
my problem is solved.