# Transparency of TGraphAsymmErrors uncertainty band

**URL:** <https://root-forum.cern.ch/t/transparency-of-tgraphasymmerrors-uncertainty-band/32807>\
**Category:** Newbie\
**Created:** [February 19, 2019, 3:41pm UTC](https://root-forum.cern.ch/t/transparency-of-tgraphasymmerrors-uncertainty-band/32807 "2019-02-19T15:41:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aStudent](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/5e9695/32.png) [@aStudent](https://root-forum.cern.ch/u/aStudent)\
**Post date:** [February 19, 2019, 3:41pm UTC](https://root-forum.cern.ch/t/transparency-of-tgraphasymmerrors-uncertainty-band/32807/1 "2019-02-19T15:41:11Z")

</div>

Hi,

I have two TGraphAsymmErrors (of distinct colours), and have them on the same plot using TMultiGraph with the drawing option “A4”. The goal is to have two uncertainty bands of different colours with some transparency so that their overlaps can be clearly seen. I have mainly tried using h-\>SetFillColorAlpha(kRed, 0.5) but this makes no difference whatsoever. I know that there might be a way to do this using TPad transparancy, but my plots are already on some TPads, so this might make things a bit too crowded.

Any help is appreciated!

---

<div class="post-metadata">

**Author:** ![Triple\_S](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/triple_s/32/17129_2.png) [@Triple\_S](https://root-forum.cern.ch/u/Triple_S)\
**Post date:** [February 22, 2019, 1:26pm UTC](https://root-forum.cern.ch/t/transparency-of-tgraphasymmerrors-uncertainty-band/32807/2 "2019-02-22T13:26:29Z")

</div>

I once had a similar problem.  
In the end I solved it by assigning the fill style 3345 (diagonal lines from top left to bottom right) to the one area and the fill style 3354 (diagonal lines from top right to bottom left) to the other one. If the fill colors are different, the overlap region is optically good visible. You can also try to play with the distance of the lines in the fill style (varying the second number - 3145, 3245, 3345 … 3945)

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [March 12, 2019, 1:02pm UTC](https://root-forum.cern.ch/t/transparency-of-tgraphasymmerrors-uncertainty-band/32807/3 "2019-03-12T13:02:45Z")

</div>

[As said in the doc](https://root.cern/doc/master/classTColor.html#C07):

" The transparency is available on all platforms when the flag `OpenGL.CanvasPreferGL` is set to `1` in `$ROOTSYS/etc/system.rootrc` , or on Mac with the Cocoa backend. On the file output it is visible with PDF, PNG, Gif, JPEG, SVG … but not PostScript."

X11 does not support transparency.
