Drawing canvas from saved root file

Hi, I am saving a canvas (that looks like this) in a root file.

when i opened it for plotting (get the canvas then c.DrawClonePad()), it reverts the plots to black color, but is normal whe opening it with TBrowser.

any idea ?

_ROOT Version:6.26.00
_Platform:conda (in Ubuntu 20.04, WSL)
_Compiler:GCC 10.4.0

Can you post the root file ?

t.root (1.0 MB)
seems like it only store the first plot in every pad

Hi,

This is content of your file, which can be plot with jsroot:

https://root.cern/js/latest/?file=https://root-forum.cern.ch/uploads/short-url/oF08tJYZpxputAQKiYYVE0mbIY0.root&item=WiggleFit_SimBD_Plots_residualFFT_Run3b_TMethod;1

Looks ok for me

fine also with:

% root t.root
   ------------------------------------------------------------------
  | Welcome to ROOT 6.29/01                        https://root.cern |
  | (c) 1995-2022, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for macosx64 on Jun 20 2023, 09:29:44                      |
  | From heads/col-is-def@v6-29-01-1648-ge566d2865f                  |
  | With Apple clang version 12.0.5 (clang-1205.0.22.9)              |
  | Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q'  |
   ------------------------------------------------------------------

root [0] 
Attaching file t.root as _file0...
(TFile *) 0x7fe6ff9f0e40
root [1] _file0->ls()
TFile**		t.root	
 TFile*		t.root	
  KEY: TCanvas	WiggleFit_SimBD_Plots_residualFFT_Run3b_TMethod;1	c3
root [2] WiggleFit_SimBD_Plots_residualFFT_Run3b_TMethod->Draw()
root [3]

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