Fixed the use of x coord instead of y in linearize.
Merge pull request #6 from jchoude/fix_coord

Fixed the use of x coord instead of y in linearize.