Unreadable of (x,y) values on TCanvas

Dear developers,

OS: MacOS Sonoma 14.4.1
ROOT: 6.32.06

The (x,y) values on the Event Statusbar become unreadable when I drag the legend object manually by clicking on the graph like (file1.png to file2.png). Is this a bug?

Best, KS.


Hi @kensugi,

Thanks for your question. It seems like legend objects are not transparent, have you tried setting SetFillStyle(0) for the legend?

Dear @devajith

Thank you for your suggestion. But, no changes were found. The (x,y) values are overlapped with the left-side text.
Attached are my Python Program and text file read in the program.

Best, KS.

depict_let.py (2.4 KB)
srim_result.txt (5.9 KB)

Let me add our graphics expert @couet in the loop.

Cheers,
Devajith

Dear @devajith

Thank you.

Best, KS.

I will check

I see it. It is because the editor menu is displayed. Turn off the editor menu and it will work. Any action changing an object position in the pad produces the same thing. When you resize the canvas it becomes good again. I am not sure if it is only on mac. @bellenot do you see the same on windows for instance ?

Dear @couet

Thank you.
When I deactivate c0.ToggleEditor(), then it works. But, I wanna activate the editor menu. Is it possible to solve this?

Best, KS.

We are looking. I would like first to know is it is only on Mac or also on other machines.

I cannot test it on Windows… (PyROOT doesn’t work properly with the old GUI)

To reproduce it is enough to do:

root [0] TCanvas c

toggle the editor and the status bar and click in the canvas

Wait, I fixed the issue on Windows. So I tried your code and there is no problem on WIndows:

BTW, see also Problem with TGStatusBar

Thanks for spotting it. Is there a fix to this issue on Mac or is it still ongoing ?

I guess it’s still pending… @couet can confirm

Yes it seems to be the same. I will ask @Timur_Pocheptsov again. The reproducer is simple:

root --web=off
root [0] TCanvas c
.... toggle the editor and the status bar via the View menu
... click in the white (drawing) area of the canvas