ENH: added parameter to use periodic x-coordinates