Making scatter plots modular