I have to draw a graph: triple colors with width, prepared with four factors along the x-direction.
red = [#,#,...,#]
green = [#,#,...,#]
blue = [#,#,...,#]
width = [#,#,...,#]
red + green + blue for each x point is unity.
Found two examples in Stackoverflow and Matplolib.
(Just above figure, but it represents only two colors. I need RGB colors)
How can these be combined as one figure maintaining the above properties?
Both are using LineCollection function.
I'm trying to write about this.
https://matplotlib.org/3.1.1/gallery/lines_bars_and_markers/multicolored_line.html