Please refer to the modified version of the DynamicSlice.py example in the topic below:
I have noticed that the peak-labels in the projection canvas vanish when I resize or double-click the corresponding canvas. This is not the behavior I expect, those labels should stay there. Please suggest.
It looks like th Text is removed at the end of the script . Is there a way in python to make the text persistent ? like when we create a pointer in C++ macro ? Have you tried to make this example in C++ ? (to see if you get the same effect)
I must admit that I am neither expert in C++ nor in Python. It just so happened that I was going through different tutorials and came across DynamicSlice.py , and immediately realized that it would be great tool to quickly analyze 2D gamma-gamma coincidence Histograms.
Any further guidance to convert the code to C++ would be of great help.
I tried to modified the DynamicSlice.C macro as suggested by you. It is working, sort of! But not exactly. There are two problems - (1) Both the projections are same and (2) The lines persists. I am sure, there must be something simple which I am doing wrong. Can you please help?