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?
Asked
Active
Viewed 73 times
2 Answers
2
A workaround:
calloutopts = Sequence[CalloutStyle -> Red];
Plot[Callout[x^2, x^2, calloutopts], {x, -3, 3}]
MelaGo
- 8,586
- 1
- 11
- 24
-
1Weird. I wonder why that works and the naive, direct way does not... that the global option setting does not work. – David G. Stork Sep 09 '23 at 22:54
-
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. – bmclaurin Sep 10 '23 at 09:27
1
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}]
kglr
- 394,356
- 18
- 477
- 896


