Why pygmt grdimage 's transparency property doesn't work!

Hello, everyone.
My code is like this ,I set the transparency as 90, but is doesn’t work, do somebody know how to fix this, thanks very much.
fig.grdimage(
grid=grid,
region = region,
cmap=“jet”,
projection=“M10c”,
frame=True,
transparency=90,
)

Are you using fig.show() or fig.savefig() to view the result? Does the following work to produce a semi-tranparent map for you?

import pygmt
grid = pygmt.datasets.load_earth_relief()
fig = pygmt.Figure()
fig.grdimage(grid=grid, region="d", projection="H10c", frame=True, transparency=90, cmap="geo")
fig.show()

Thanks, it’s be done.

I encountered the same problem. I used the code below, but it seems that the transparency function didn’t work. May I know how did you solve the problem? Thank you.

fig.grdimage(
    grid=grid,
    cmap="jet",
    transparency=40
    )

Hi ,you can change to this ‘cmap=True’