Added function get_alim(id) to keep axis limits in one place
updated to use get_alim(id)