When I do
SetOptions[Callout,CalloutStyle->Red]
and then do Plot[Callout[x^2],{x,-3,3}]
, I get plot with a regular gray (not red) callout marker. Can I not set those options globally?
2 Answers
Another work-around: Use SetOptions
for Plot
to set the option value for PlotLabels
:
SetOptions[Plot,
PlotLabels -> Callout[Automatic, Automatic, CalloutStyle -> Red]];
Plot[x^2, {x, -3, 3}]
Plot[{x^2, 5 + x^2, 10 - 4 x}, {x, -3, 3}]
A workaround:
calloutopts = Sequence[CalloutStyle -> Red];
Plot[Callout[x^2, x^2, calloutopts], {x, -3, 3}]
-
1$\begingroup$ Weird. I wonder why that works and the naive, direct way does not... that the global option setting does not work. $\endgroup$ Sep 9 at 22:54
-
$\begingroup$ Your answer is essentially what I've been doing. I'll hold out for a bit to see if anyone has a way to make the global setting work before accepting this as answered. Thank you. $\endgroup$ Sep 10 at 9:27