The Quino checkerspot butterfly has saved itself from extinction by shifting to a higher altitude and picking a new species of plant for laying eggs.