I have read the relevant documentation. It is known that ListLinePlot can control the line’s color through x-axis or y-axis data.
However, I need to control the line’s color based on additional data.
Sample data or code is as follows:
I hope to control the color of the line segment based on data[[All,3]]. For example, when the value is greater than or equal to 0, it is red; when it is less than 0, it is green.
How to do this?
I tried another way, but I couldn’t reconnect the line.