I am having problems with setting the opacity of callout labels when plotting. Strangely, it only seems to work when the text color is red. In the following example, the odd labels should be 0.2 opacity, but as you can see it only works for red.
Plot[{
Callout[Sin[x], "Boo", Above, LabelStyle -> {Red, Opacity[0.2]}],
Callout[Sin[x - 0.2], "Boo", Above,
LabelStyle -> {Red, Opacity[1.0]}],
Callout[Sin[x - 0.4], "Boo", Above,
LabelStyle -> {Black, Opacity[0.2]}],
Callout[Sin[x - 0.6], "Boo", Above,
LabelStyle -> {Black, Opacity[1.0]}],
Callout[Sin[x - 0.8], "Boo", Above,
LabelStyle -> {Blue, Opacity[0.2]}],
Callout[Sin[x - 1.0], "Boo", Above,
LabelStyle -> {Blue, Opacity[1.0]}],
}, {x, 0, Pi}]
FullForm
of output you can seeList[RGBColor[1, 0, 0], Opacity[0.2
]]` for red color andList[RGBColor[0, 0, 1], Opacity[0.2], Opacity[1]]
for blue color. For some reason Mathematica appendsOpacity[1]
afterOpacity[0.2]
which overrides the previous opacity setting. $\endgroup$