Cleaned up example script for dotplots