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).

../../_images/sphx_glr_land_and_water_001.png
import pygmt

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

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

Gallery generated by Sphinx-Gallery