Cannot plot color transparency

Dear all,

I would like to plot some rectangles with color transparency.
I am trying to follow the “tutorials/graphics/transparency.C”.
As an example in ROOT, in this link, the ellipses look transparent.
But my output is not transparent (attached file).


I tried with different computers (office desktop, laptop, university server). I got the same issue.
Can someone tell me what is the problem?


_ROOT Version:_6.14/04
Platform:
Compiler: gcc5.4


It looks to me like you have not set the OpenGL.CanvasPreferGL flag to 1. Try:

root [0] gStyle->SetCanvasPreferGL(kTRUE);
root [1] .x transparency.C 

Thank you Wile.
It works !

https://root.cern/doc/master/classTColor.html#C07

Thank you very much!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.