cleaned up scatter plot code; added support for cactus plots.