-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image artifact with zoombox on 1D hist if SetFillStyle 0 on Ubuntu #9763
Comments
Why do you think this is related to: 3787e53 ? |
The artifact appeared at some point between 5.34/18 and 5.34/19, so I thought that these commits could be related. Yes, calling canvas->MoveOpaque(0) makes the artifact disappear. |
Ok, that's quite old. Does reverting this patch you pointed fixes it ? |
(I did not try yet reverting it.) |
The MoveOpaque issue pointed in 3787e53 is connected to TLine. But it seems the artefacts are coming from the shaded area used to highlight the zoomed interval. At least according to the screen captures you posted .... |
Yes, the shaded area might be the culprit. |
That one is for 2D histograms. Your plot ia a 1D one... |
|
well ... yes may be I need to retrieve the patch... |
This mechanism is implemented in THistPainter::ExecuteEvent. |
In that code you are in the case where the alpha mode is not supported (with X11). |
Hmm not sure why here there is only a root/hist/histpainter/src/THistPainter.cxx Line 3681 in 5d69eca
|
me neither ... I do not remember... that's too old. |
Indeed that code is for 2D only it seems. I changed the boombox color to red and it appears red only in the 2D case. |
Yes, the |
Indeed I was wrong . In case of 1D the zoom is done in TPad.cxx |
I don't remember having seen this problem for 2D histograms, but maybe is the interplay with TLines and TGaxis which causes it in my example, rather than it being 1D? Hard to say. |
In any case the |
Yes, I see it with a simple 1D histogram, too, no need for secondary axes. But... Ok I found out the issue. I do see the artifact only if I call: |
I tried to call that also but I still do not see the problem on Mac
|
You can reproduce it on a free online Ubuntu 20 browser-box:
I did the process and it's the case the artifact is there on such a fresh independent install. |
.... well
I am not sure what line you mean
ok
ask me for a password I do not know ... |
Ok ... that's too painful ... not stable ... it disconnect ... I don't spend more time on that. Thanks for the recipe anyway |
If I completely disable the zoombox creation in TPad.cxx, I can still zoom 'invisibly' on the canvas, and the artifact does not appear :) |
yes ... that's really the zoombox ... |
I found a solution. Not sure if the difference is that when releasing the mouse, in MacOS another 'button' is detected which already calls the Modified/Update sequence, in comparison to with Ubuntu. |
All the problems mentioned in this issue are fixed. I close it. |
Hi @couet, It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise. Sincerely, |
Describe the bug
On a canvas with a histogram, if I zoom using right click, SetRangeUser, all works fine. If I zoom using the scroll wheel on the x-axis, it works well, too. If I zoom using press and hold, then release, I get an image artifact:
The artifact disappears after clicking once on the canvas.
I do not get the artifact at all if I call at script beginning:
gStyle->SetCanvasPreferGL()
It seems that the image artifact has exactly the same pattern as the semi-transparent fill-style zooming window. See here:
While Zooming:
After Zooming:
The pattern in the old labels is slightly different:
Expected behavior
No image artifact is shown.
To Reproduce
Setup
The issue appears with:
It does not appear with:
Additional context
3787e53
#9740
The text was updated successfully, but these errors were encountered: