Creating reusable plot objects