Note
Go to the endto download the full example code.
Color by y-value#
Use masked arrays to plot a line with different colors by y-value.

References
The use of the following functions, methods, classes and modules is shownin this example:
Tags:styling: colorstyling: conditionalplot-type: linelevel: beginner