こういうことかな?
>plot ( 0<x && x<2*pi ? sin(x) : 1/0) w l,\
> ( -2*pi<x && x<0 ? cos(x) : 1/0) w l,\
> ( -2*pi<x && x<2*pi ? tan(x) : 1/0) w l