Removing Initial C1 Canvas


I am drawing a histogram on a canvas I created:
TCanvas * cTripletFit = new TCanvas(“Triplet Fit”,“Triplet Fit”);

It draws the histogram on the canvas just fine, but it first draws the same histogram on a canvas called “c1”. I guess this is the default canvas? My question is this: How do I get rid of this default canvas “c1” when I want to draw my histogram on my own custom canvas?

Replace the “Draw” line with the “Fit” line.

See also:

Thank you for the advice, it seems to have worked.