Re: [ROOT] TProfile2D and saving canvas *.C file problems

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Nov 26 2004 - 09:01:50 MET


Hi Jeff,

Thanks for reporting all these problems with TProfile2D, TPaletteAxis
and TLegend. All these problems should be solved now in the CVS version.

Rene Brun

Jeff Hartnell wrote:
> 
> Hi,
> I've been using the very useful feature of root to save C macros of
> canvases but have run into some problems.
> 
> I'm using root_4_01_02 compiled from source on suse linux.
> 
> I attach 2 files:
> 1.) mProf.C (code I wrote to make canvas "cTest")
> 2.) cTest.C (root produced code when saving "cTest.C")
> 
> These are the problems:
> 1.) Changing the label size of TPaletteAxis does not get propagated to
> the canvas automatically - I have to draw again.
> 
> 2.) The palette label size does not get stored in cTest.C when I click
> on the item under "save" in the "File" menu.
> 
> 3.) Changing the Ndivisions on the palette doesn't work using:
> palette3->GetAxis()->SetNdivisions(3);
> 
> 4.) When I save cTest.C I get "ClassName()" instead of "TProfile2D" as
> the type of my profile histograms - hence macro wont run!
> 
> 5.) The TLegend I created does not have its FillColor saved in cTest.C.
> 
> Is there anyway for root to propagate the "gStyle->SetPalette" that was
> in use when the C macro was saved - I always have to go in and change it
> by hand.
> 
> Thanks for your help,
> Jeff.
> 
> --
> ********************************************
> Jeffrey Hartnell, Oxford/RAL DPhil student.
> 
> Phone numbers, addresses, etc on website:
> http://www-pnp.physics.ox.ac.uk/~hartnell/
> ********************************************
> 
>   --------------------------------------------------------------------------------
>               Name: cTest.C
>    cTest.C    Type: Plain Text (text/plain)
>           Encoding: 7bit
> 
>               Name: mProf.C
>    mProf.C    Type: Plain Text (text/plain)
>           Encoding: 7bit



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:10 MET