R has a package called ggplot which has a cartesian coordinate system. Related libraries will solve, do euclidean distance, etc. R has a ton of fairly intuition packages for graphics and the best user community, loads of helpful examples, templates, etc on stack exchange, cross validated, etc.
Related, I am offein a bounty to anyone who can offer a freeware version of tableau. Iweave is a big hot mess but tableau's recent Unix beta server is an even bigger clusterfuck. Shameful and if they had any pride, they would dig an enormous hole and throw that shit in the ground and start over.