# Rotate -Sc symbols in 3D?

**URL:** <https://forum.generic-mapping-tools.org/t/rotate-sc-symbols-in-3d/3837>\
**Category:** Q&A\
**Created:** [April 13, 2023, 11:05am UTC](https://forum.generic-mapping-tools.org/t/rotate-sc-symbols-in-3d/3837 "2023-04-13T11:05:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gwsmelo](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gwsmelo](https://forum.generic-mapping-tools.org/u/gwsmelo)\
**Post date:** [April 13, 2023, 11:05am UTC](https://forum.generic-mapping-tools.org/t/rotate-sc-symbols-in-3d/3837/1 "2023-04-13T11:05:34Z")

</div>

Hi everyone,

I am plotting a 3D diagram showing isotherm layers and hypocenter. I have done the plot of hypocenter symbols using psxyz and -Sc. However, the plots are projected in a planar model, and the circles don’t resemble exact circles. Is there a possibility to rotate the symbols to be visually circular in vertical planar? Here is the example of command used:

awk ‘{print $8, $9, $10 }’ events | gmt psxyz -B1 -Bz -R -J -JZ -p -Gblue -Sc0.22 -O -K \>\> $ps

Also, is there a possibility to change the projection of the coordinates axes label?

thanks,  
Guilherme

 ![diagram](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/2/26186cc25fbafb3ac5e8164443e9bd2fb916959f.png)

---

<div class="post-metadata">

**Author:** ![PlanetGus](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/planetgus/32/303_2.png) [@PlanetGus](https://forum.generic-mapping-tools.org/u/PlanetGus)\
**Post date:** [April 13, 2023, 2:36pm UTC](https://forum.generic-mapping-tools.org/t/rotate-sc-symbols-in-3d/3837/2 "2023-04-13T14:36:04Z")

</div>

The solution I found is to plot ellipses instead of circles and rotate them:

```auto
gmt plot3d … -Se${azimuth}/0.3/$(gmt math -Q 0.3 ${elevation} SIND MUL =) …

```

It’s a little bit too much in my opinion, but I’ve been told that the problem comes from POSTSCRIPT not being able to plot spheres, not GMT itself.

> [@Plot3d : what am I doing wrong?](https://flint.soest.hawaii.edu/t/plot3d-what-am-i-doing-wrong/3352/4):
>
> The (lack of) spheres is a known issue, awaiting for its time (need a PostScript solution)

Note that this workaround collapses when azimuth is 0.

---

<div class="post-metadata">

**Author:** ![gwsmelo](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gwsmelo](https://forum.generic-mapping-tools.org/u/gwsmelo)\
**Post date:** [April 13, 2023, 2:54pm UTC](https://forum.generic-mapping-tools.org/t/rotate-sc-symbols-in-3d/3837/3 "2023-04-13T14:54:19Z")

</div>

Thanks for the suggestion. I will try it.

Yes, I was feeling a lack of a sphere or another symbol that is not square/rectangle to plot in 3-D, once there is the possibility to plot the whole planet in 3D.

---

<div class="post-metadata">

**Author:** ![gwsmelo](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gwsmelo](https://forum.generic-mapping-tools.org/u/gwsmelo)\
**Post date:** [April 13, 2023, 3:16pm UTC](https://forum.generic-mapping-tools.org/t/rotate-sc-symbols-in-3d/3837/4 "2023-04-13T15:16:58Z")

</div>

An error message is showed when I try to use plot3d:

_gmt [ERROR]: Shared GMT module not found: plot3d_

_ERROR: No module named plot3d was found. This could mean one of four cases:_

- 
  1. There actually is no such module; please check your spelling.\*

- 
  1. You used a modern mode module name while running in GMT classic mode.\*

- 
  1. Module exists in the GMT supplemental library, but the library could not be found.\*

- 
  1. Module exists in a GMT custom library, but none was specified via GMT\_CUSTOM\_LIBS.\*  
_Shared libraries must be in standard system paths or set via environmental parameter DYLD\_LIBRARY\_PATH._

The same is presented when I try to include other “modern” commands of the GMT, like polar, meca, etc. I am confused because if I just type the command (e.g. gmt meca) it works normally, but not on the code together with other commands.

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [April 13, 2023, 3:31pm UTC](https://forum.generic-mapping-tools.org/t/rotate-sc-symbols-in-3d/3837/5 "2023-04-13T15:31:19Z")

</div>

All gmt modern mode scripts start and end with

gmt begin

gmt end

If not it is classic mode
