Hi, First plot your main histogram in your canvas, then create and draw a pad in this canvas : TPad *insert=new TPad("insert","insert",0.5,0.5,0.8,0.8) insert->Draw() insert->cd() //makes insert the current pad You can then draw the other histogram in the insert. Bye ! Colin On Sun, 5 Mar 2000, David d'Enterria wrote: > Hello, > > I have a histogram drawn on top of which I would like to plot a > (smaller) different histogram (as an inset). How do I do that ? > > thanks in advance, > > David d'Enterria > ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ > Groupe Photons Subatech > http://www-subatech.in2p3.fr/~photons/subatech/ > mailto:enterria@in2p3.fr phone: +33.2.51.85.85.60 > ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ > Grup Física Radiacions UAB http://cc.uab.es/~iffr2/ > mailto:d.enterria@cc.uab.es phone: +3493.581.13.64 > > "In science, there is only physics; all the rest is stamp collecting", > Ernest Rutherford > > >
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:21 MET