Check axis exists before setExtremes