ENH: added parameter to use periodic x-coordinates

@jaimefrio thank you...