[Fwd: Superimposing a TProfile on a contour plot of a bi-dim histo]
From: David d'Enterria (enterria@in2p3.fr)
Date: Sun Oct 24 1999 - 03:21:04 MEST
oops ... I forgot to say that I've tried with different versions of ROOT
(2.00/10, 2.22/10 and 2.23/04) running under HP-UX or Linux ...
regards,
David d'Enterria
attached mail follows:
Hello all,
I got a TProfile which I want to plot on top of a TH2F:
2d_histo_et_vs_y.Draw("opt") ;
profile_et_vs_y.Draw("same") ;
I can do it without problem if I plot the bi-dim histo with options:
*-* "ARR" : arrow mode. Shows gradient between adjacent cells
*-* "BOX" : a box is drawn for each cell with surface proportional
to contents
*-* "COL" : a box is drawn for each cell with a color scale
varying with contents
*-* "COLZ" : same as "COL". In addition the color mapping is also
drawn
*-* "CONT1" : Draw a contour plot using line styles to distinguish
contours
*-* "CONT2" : Draw a contour plot using the same line style for all
contours
*-* "CONT3" : Draw a contour plot using fill area colors
*-* "SCAT" : Draw a scatter-plot (default)
But the TProfile does NOT appear on top of the bi-dim histo if I plot it
with options:
*-* "CONT" : Draw a contour plot (same as CONT3)
*-* "CONT0" : Draw a contour plot using colors to distinguish
contours
(BTW remark that the indication "(same as CONT3)" should be "(same as
CONT0)" at page http://root.cern.ch/root/html/TH1.html#TH1:Draw )
Is there any reason why ?
David d'Enterria
¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬
Groupe Photons Subatech http://www-subatech.in2p3.fr/~photons/
mailto:enterria@in2p3.fr phone: +33.2.51.85.85.60
¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬
Grup Física Radiacions UAB http://cc.uab.es/~iffr1/
mailto:d.enterria@cc.uab.es phone: +3493.581.13.64
This archive was generated by hypermail 2b29
: Tue Jan 04 2000 - 00:43:41 MET