# Mis-matched coordinate systems - 3d scatter plot superimposed over 3d surface

**URL:** <https://discourse.threejs.org/t/mis-matched-coordinate-systems-3d-scatter-plot-superimposed-over-3d-surface/13864>\
**Category:** Questions\
**Tags:** infoviz\
**Created:** [March 27, 2020, 2:36am UTC](https://discourse.threejs.org/t/mis-matched-coordinate-systems-3d-scatter-plot-superimposed-over-3d-surface/13864 "2020-03-27T02:36:17Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![nickgoldring](https://avatars.discourse-cdn.com/v4/letter/n/d07c76/32.png) [@nickgoldring](https://discourse.threejs.org/u/nickgoldring)\
**Post date:** [March 27, 2020, 2:36am UTC](https://discourse.threejs.org/t/mis-matched-coordinate-systems-3d-scatter-plot-superimposed-over-3d-surface/13864/1 "2020-03-27T02:36:17Z")

</div>

Hi everyone,

I am currently trying to produce a scatter plot that sits on top of a 3D surface using three js. The scatter plot data represents control points which should rest perfectly on my 3D surface since the surface data is interpolated from these control points. Unfortunately, when I plot the control points, they do not seem to use the same coordinate system as the 3d surface. This is what it looks like:

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/1/174e3e60c846b9c0d4e1ee63cbe409f6da52b14a.jpeg)

The surface is on an xyz grid with origin at (0,0,0). The black points are the control points.

I can easily achieve the correct plots using Python’s matplotlib:

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/c/cec75ed044742e912252a695b76349dfbdcf83c7.jpeg)

And similarly with matlab:

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/6/62e9df0c28e29adaa5d5c02986b6134eb9c03002.png)

Any help that you can offer in reproducing this with three js would be greatly appreciated. Thanks!

---

_[View the full topic](https://discourse.threejs.org/t/mis-matched-coordinate-systems-3d-scatter-plot-superimposed-over-3d-surface/13864)._
