plot input output