Dear all,
I have a very simple macro to draw a T2F function; please find it in attachment. tf2.C
It produces a canvas which I save as a pdf and I attache as well. tf2.pdf
As you can see the palette is partially out of the canvas. I have tried using the mouse to resize
the T2F plot but it does not allow me to resize it or move it. Resizing the palette is a cumbersome
workaround. I have tried some methods of TCanvas to resize it but they do not work for me and plus I believe the thing to be resized is the canvas as it contains the palette as well.
Am I missing something? Any help will be greatly appreciated.
Regards,
Marco Bomben
ROOT Version: 6.11/02 Platform: OS X Compiler: Apple LLVM version 10.0.0 (clang-1000.10.44.2)
My point was that “updating” the pad (between “Draw” and “SetRightMargin”) would immediately break Olivier’s example (call it a “feature”, not a “bug”). You should always set appropriate “margins” BEFORE you draw anything.