can add third var to scatter from switchXY

also fixed some issues with removing colorbar when going to line_plot.
ugly solution though.