Able to change plot types at runtime