switch plot