We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de74e3d commit 125574eCopy full SHA for 125574e
pygmt/src/tilemap.py
@@ -142,9 +142,9 @@ def tilemap(
142
raster = raster.rio.reproject(dst_crs="OGC:CRS84")
143
raster.gmt.gtype = 1 # set to geographic type
144
145
- # Only set region if no_clip is False, so that plot is clipped to exact
146
- # bounding box region
147
- if not kwargs.get("N"):
+ # Only set region if no_clip is None or False, so that plot is clipped to
+ # exact bounding box region
+ if kwargs.get("N") in [None, False]:
148
kwargs["R"] = "/".join(str(coordinate) for coordinate in region)
149
150
with GMTTempFile(suffix=".tif") as tmpfile:
0 commit comments