Implemented switching plots based on axis labels