I always encounter the problem that the parameter text covers data points and goes out of the box. In the forum I found some hints to change the font size of the parameters with adding:
frame.getAttText.SetTextSize()
after ‘model.paramOn’
but this didn’t work out for me.
I get the error:
frame.getAttText.SetTextSize(2)
AttributeError: 'ROOT.MethodProxy' object has no attribute 'SetTextSize'
then I tried to find out if the frame object exists and printed out the pointer. But I get for 'print(frame.getAttText):
<ROOT.TAttText object at 0x(nil)>
as if the object doesn’t exist.
Is there a way to fix this problem? Or do you know another way how to change the font size of the parameter box?
Best Regards and thanks in advance
Tobias Jenegger
This happens because frame.getAttText is just the function that retrieves the TAttText object, if you want the real object you would have to add parenthesis as in frame.getAttText(). Bu then unfortunately I cannot reproduce this
can you provide a small snippet of code with this issue?
Best,
Vincenzo
Thanks very much for the indirect hint. When I tried to create a snippet of code for you to reproduce the error message I found out that I only get this error if I put the line print (frame.getAttText) after
some_model.plotOn(frame,...
But if I place the code before, it works completely fine and I can resize the font size!
One last question: Do you know, if there is also a way to resize the line spacing, as for now SetTextSize just resizes the font size…