# 3D plot: Elevations for points

**URL:** <https://forum.generic-mapping-tools.org/t/3d-plot-elevations-for-points/3134>\
**Category:** PyGMT Q&A\
**Created:** [July 19, 2022, 11:58am UTC](https://forum.generic-mapping-tools.org/t/3d-plot-elevations-for-points/3134 "2022-07-19T11:58:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KPinedaO](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/kpinedao/32/2402_2.png) [@KPinedaO](https://forum.generic-mapping-tools.org/u/KPinedaO)\
**Post date:** [July 19, 2022, 11:58am UTC](https://forum.generic-mapping-tools.org/t/3d-plot-elevations-for-points/3134/1 "2022-07-19T11:58:09Z")

</div>

Hello, everyone.  
I would like to know if someone can help with an issue I´m dealing with PyGMT.  
In a 3D plot, I want to plot some points with a cube style over a surface. However, I´ve noticed the points only appear in the plot when the elevation is zero.

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/e/ecca61bb5227837d7ce2d6829a90b38ce1843d75.jpeg)

I used this code:

```auto
fig.plot3d(x=sta_VSM.Lon,
           y=sta_VSM.Lat,
           z=sta_VSM.Z,
           size=size_sta_a,
           style="uc",
           color="black",
           zscale="0.0015c",
           perspective=True,
           projection="M8i",
           #frame=["xa", "yaf", "za", "wSnEZ"],
           region=region,
           transparency=30)

```

I have run this code [3D Scatter plots — PyGMT](https://www.pygmt.org/v0.2.1/gallery/plot/scatter3d.html#sphx-glr-gallery-plot-scatter3d-py) and it works perfectly.

Can someone help me?

Thanks for the help

---

<div class="post-metadata">

**Author:** ![mdtanker](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/mdtanker/32/1184_2.png) [@mdtanker](https://forum.generic-mapping-tools.org/u/mdtanker)\
**Post date:** [June 14, 2023, 10:53pm UTC](https://forum.generic-mapping-tools.org/t/3d-plot-elevations-for-points/3134/2 "2023-06-14T22:53:59Z")

</div>

Maybe try adding `no_clip=True`. Also, does your `region` variable include zmin and zmax values (xmin, xmax, ymin, ymax, zmin, zmax)?
