script for axis from edges