In a Stata graph, I sometimes use colored text to label colored lines, but it's sometimes hard to match the shades. The code below is an example. I've made the upper text orange and the lower text blue, but the orange and blue of the text don't quite match the orange and blue of the lines. How can I better match the text color to the line color? When I inspect the line colors in the Graph Editor, they show as "Custom."
Code:
set scheme white_tableau twoway function y=1-(1-.05)^x, range(1 20) || function y=1-(1-.10)^x, range(1 20) lpattern(dash) /// text(.29 10 "Blue", color(blue)) text(.77 10 "Orange", color(orange))
Comment