If I have two plots with two different colors,
Plot[{Sin[x]^2, Sin[10 x]^2}, {x, 0, 5}, PlotStyle -> {Red, Blue}]
is there a way to change the color of the overlapping line? I don't want to fill rather change the overlapping part only. I wanted to do this for ListLinePlot
if possible!
In the following plot blue curve is on top of the red one. What I want is every time the blue and red overlap change the color of the overlapping line.
Plot[{Sin[x]^2, Sin[5 x]^2}, {x, 0, 5},
PlotStyle -> {Directive[Red, Thickness[.02]], Directive[Blue, Thickness[.02]]}]
Thank you!
Filling -> {1 -> {2}}
yields this result. Is that along the lines of what you want? Perhaps you could define what you mean by "overlapping region" in your case. $\endgroup$