Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Opacity of RGB colored area graph

    Can I set opacity if the color is RGB defined (in area graphs)?

    The following command doesn't make the area transparent.
    Code:
    twoway  rarea y1 y2 year, color("222 235 247"%30) xline(1941, lpattern(dot))
    If I replace the color command by "color(blue%30)" it works as expected.

  • #2
    Welcome to the Statalist, Felix.

    See -help colorstyle- for full details of how to specify opacity. All you have to do in your case is move the “%30” inside the quoted string, like so:-color(“222 235 247%30”)-.
    Last edited by Leonardo Guizzetti; 25 Apr 2018, 15:31.

    Comment

    Working...
    X