added graph axis scaling