I make a file with a canvas containing a black histogram. If from this canvas I do:
The computer should produce the same plot but as source code. If I then do:
I should see the black histogram, but I see a blue one. In the same way other settings seem to be lost in the canvas -> source transition. Is there a way to tell ROOT to keep these settings?
I am trying to keep my plots as .cxx files instead of .pdf files and as I build my talk/paper I want these .pdf files to be generated. In this way I wont have to commit images but just code. However the fact that these settings get lost changes my plots.
Yes I noticed that too. I have an overlay of black and red and the black histogram is changed to blue. Is this a ROOT problem and is there an easy way to fix it?
Yes, that works in that small example you wrote. I made some tests and It seems that the TColor object has to be declared before SaveAs is called. In the code below: