ENH: added parameter to use periodic x-coordinates

@jaimefrio great catch!