Color land and waterΒΆ

The land and water arguments of pygmt.Figure.coast specify a color to fill in the land and water masses, respectively. You can use standard GMT color names or give a hex value (like #333333).

land and water

Out:

<IPython.core.display.Image object>

import pygmt

fig = pygmt.Figure()
# Make a global Mollweide map with automatic ticks
fig.basemap(region="g", projection="W15c", frame=True)
# Plot the land as light gray, and the water as sky blue
fig.coast(land="#666666", water="skyblue")
fig.show()

Total running time of the script: ( 0 minutes 1.163 seconds)

Gallery generated by Sphinx-Gallery