added throw exception if user sets duplicate x,y axes