In [2]:
import numpy as np
x = np.linspace(0, 2*np.pi, 100)
y = np.sin(x)
z = np.cos(x)
y and z in the first row y in redz in bluey and z in the second rowy from $[ 0 .. \pi]$y red circles only (no lines)z from $[ \pi/2 .. 3\pi/2]$z blue triangles with lines connecting them
In [ ]: