Graph inside another graph

Hello, I want to draw another graph(with axis and everything of it’s own) into an existing graph. The 2nd graph needs to be in the corner right or left and should be smaller in size. Just like a legend.
could you please suggest me something? I am new to ROOT.

Try searching the forum. E.g. Inset plot on same canvas

Thank you so much. Have a nice day. Best wishes.

   auto h = new TH1D("h","h",100,-4,4);
   TPad *p = new TPad("p","p", 0.5,0.6,0.9,0.8);
   TH1D *hc = (TH1D *)h->DrawCopy();

thank you.
much appreciated

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.