setting axes by function