This question already has an answer here:
I'd like to plot multiple sets of data, along with trend line fits for each. I can do this by plotting the fits, and then including the data in an
Epilog. But I'd like the color of the data points to match the color of the curves in
Plot. Is there an easy way to access the default colors of plots?
I've done what I want here:
But, I had to do clunky things. First, I assigned the output of the
Plot to a variable
out. Then in the
Epilog, I called stuff like
out[[1, 1, 2, 1, 2, 2, 2]] to get the correct color. There has to be a better way.