I have a problem with one of my root macro where I draw a 2D histogram and its x and y projections. In order to have the y projection in the right direction (see figure 1), I create a TImage of this y projection histogram that I rotate with the command “img->Flip(90);” (see example.cpp). Then, I save the image with the .ps format.
My macro works in interactive mode (see figure 1) but in batch mode (-b) I have a black rectangle instead of my rotated image (see figure 2). If I remove the “img->Flip(90);” command, the black rectangle disappears (see figure 3).
ROOT 5.34/08 (v5-34-08@v5-34-08, Jun 05 2013, on linuxx8664gcc)
CINT/ROOT C/C++ Interpreter version 5.18.00
could you help me?