I like the new Callout
facility in Mathematica 11, but it's still quite clunky.
One of the issues I have is that I often like to have my labels in the same color as the corresponding curve in my plot. It would be great if CallOut
had an option so it would color the labels the same as the curves that are being labeled, but that doesn't seem to be a built-in option.
So I do something like,
Plot[{Callout[Sin[x], Sin[x], 5,
LabelStyle -> Directive[ColorData[97, 1]],
CalloutMarker -> "Circle"],
Callout[Cos[x], Cos[x], 5.5,
LabelStyle -> Directive[ColorData[97, 2]],
CalloutMarker -> "Circle"]}, {x, 0, 2 π},
GridLines -> Automatic, PlotRangeClipping -> False,
PlotRangePadding -> {{0, 0}, {0.1, 0.1}}]
which happens to work fine in the standard environments.
However, right now I am in the process of putting together a slideshow, and it turns out that Mathematica uses a slightly different plot theme based on which slideshow template is chosen.
I have no idea how to even find out what the plot theme is, and I have even less of a clue how to find out what ColorData
would correspond to that theme. My attempts to figure things out through the OptionInspector have failed, unfortunately.
Anyhow can anyone tell me how I could find the correct ColorData
call above? By poking around with
Short[ColorData[n, "ColorList"], 4]
I managed to guess that I should now use Colordata[98,n]
, but it would be really nice if there was a systematic way to figure this out.