Transparency parameter in plot function doesn't do anything

Hi, i’m using the example from the following link to plot transparent data points. But when I do this, I get points without transparency. I have the most updated version of PyGMT (v0.11.0) and of Ghostscript (10.03.0). Any idea how to fix this?

Hello @Guy,

welcome to the GMT forum :slightly_smiling_face:.

Thanks for your report! Can you please state your GMT version?

It is known that there are issues with transparency in GMT 6.4.0 for ghostscript up on version 10.02.0 and people have to use lower gs versions. For correctly working transparency when using gs versions 10.02.0 - 10.03.0 you need to install GMT 6.5.0.

Thank you!
yes, my GMT version is 6.5.0…

Hi Guy! What do you mean with this? Could you share the commands that are you using?

PS: Is the exact same script of the link?

Yes, I’ve simply copy pasted the example in the PyGMT link.

I am wondering whether your system finds an old GMT version. Can you please post the complete output of python -c "import pygmt; pygmt.show_versions()".

ohhhh you are so right!
‘’’

PyGMT information:
version: v0.11.0
System information:
python: 3.12.0 | packaged by conda-forge | (main, Oct 3 2023, 08:36:57) [Clang 15.0.7 ]
executable: /Users/path/to/anaconda3/envs/pygmt/bin/python3.12
machine: macOS-14.4-arm64-arm-64bit
Dependency information:
numpy: 1.26.4
pandas: 2.1.3
xarray: 2023.10.1
netCDF4: 1.6.5
packaging: 23.2
contextily: 1.4.0
geopandas: 0.14.1
ipython: None
rioxarray: 0.15.0
ghostscript: 10.03.0
GMT library information:
binary version: 6.4.0
cores: 10
grid layout: rows
image layout:
library path: /Users/path/to/anaconda3/envs/pygmt/lib/libgmt.dylib
padding: 2
plugin dir: /Users/path/to/anaconda3/envs/pygmt/lib/gmt/plugins
share dir: /Users/path/to/anaconda3/envs/pygmt/share/gmt
version: 6.4.0

‘’’

I’ve update GMT to 6.5 and it works!
Thanks a lot!