Add np based constructor
ReWrite equipartition_y_axis using numpy