Skip to content

Commit a1401bd

Browse files
Update examples/gallery/images/grdclip.py
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
1 parent ba5c105 commit a1401bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/gallery/images/grdclip.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
fig.basemap(region=region, projection="M12c", frame=["f", '+t"original grid"'])
2222
fig.grdimage(grid=grid, cmap="oleron")
2323

24-
# Shift plot origin for second map 12.5 cm in x direction
25-
fig.shift_origin(xshift="12.5c")
24+
# Shift plot origin of the second map by "width of the first map + 0.5 cm"
25+
fig.shift_origin(xshift="w+0.5c")
2626

2727
# Set all grid points < 0 m to a value of -2000 m.
2828
grid = pygmt.grdclip(grid, below=[0, -2000])

0 commit comments

Comments
 (0)