This may be a FAQ, but I can’t find the answer anywhere, and can’t figure out a way to do it that isn’t really ugly. If I have pairs of lines that I add to a plot, how can I make sure the second of each line pair uses the same color as the first line?
Here’s an example:
I want the dotted lines (representing model) to match the color of the lines representing the experimental data.
Obviously, in this case, I can manually say line_color=‘red’, ‘blue’ etc. But this rapidly becomes painful if I have many pairs of lines:
Is there a way to get a reference to another line and copy color automatically assigned to it? Or some standard way to handle this situation?