# How to draw the terrain of a specified area

**URL:** <https://forum.generic-mapping-tools.org/t/how-to-draw-the-terrain-of-a-specified-area/5080>\
**Category:** Q&A\
**Tags:** gmt\
**Created:** [July 12, 2024, 7:47am UTC](https://forum.generic-mapping-tools.org/t/how-to-draw-the-terrain-of-a-specified-area/5080 "2024-07-12T07:47:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ximoge](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/ximoge/32/4026_2.png) [@ximoge](https://forum.generic-mapping-tools.org/u/ximoge)\
**Post date:** [July 12, 2024, 7:47am UTC](https://forum.generic-mapping-tools.org/t/how-to-draw-the-terrain-of-a-specified-area/5080/1 "2024-07-12T07:47:01Z")

</div>

In a large area map, how to draw the terrain of a specified area in it, with other areas shown in gray.  
For example, I’d like to only want to map the United States in colored topography, and map its neighboring Canada and Mexico in gray.

```auto
gmt coast -R-130/-70/25/60 -JL-100/35/33/45/12c -Baf -Dl -N1/thick,red -N2/thin -A5000 -Wthinnest,white -Sblue -Ggray
gmt clip -JL-100/35/33/45/12c -RUS -T
gmt grdimage @earth_relief_30m -JL-100/35/33/45/12c -R-130/-70/25/60
gmt clip -C
gmt end show

```

The result is as follows:

 ![PixPin_2024-07-12_15-35-42](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/8/8581e411a8414176a83ed7fb2991e0a086871990.png)

But the result I want is similar to this picture：

 ![d8f9d72a6059252d1dbb85777fd8933f](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/1/107cbf64c213e64cf7de9a4f0828e15dd2c53044.png)

How to do it?

---

<div class="post-metadata">

**Author:** ![yvonnefroehlich](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/yvonnefroehlich/32/5064_2.png) [@yvonnefroehlich](https://forum.generic-mapping-tools.org/u/yvonnefroehlich)\
**Post date:** [July 12, 2024, 10:28am UTC](https://forum.generic-mapping-tools.org/t/how-to-draw-the-terrain-of-a-specified-area/5080/2 "2024-07-12T10:28:30Z")

</div>

Hello @ximoge,

I am wondering if using the [**-E** flag of `coast`](https://docs.generic-mapping-tools.org/latest/coast#e) would be easier here instead of `clip`:

```bash
gmt begin usa_dcw_mx_ca png
	gmt grdimage @earth_relief_30m -R-130/-70/25/60 -JL-100/35/33/45/12c
	gmt coast -Baf -Dl -N1/thick,red -N2/thin -A5000 -Wthinnest,white -Sblue -EMX+ggray -ECA+ggray
gmt end show

```

 ![usa_dcw_mx_ca](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/b/b102164985b03f9432b7ad6d98fc5b5e40bb5af6.png)

---

<div class="post-metadata">

**Author:** ![Joaquim](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/joaquim/32/16_2.png) [@Joaquim](https://forum.generic-mapping-tools.org/u/Joaquim)\
**Post date:** [July 12, 2024, 10:43am UTC](https://forum.generic-mapping-tools.org/t/how-to-draw-the-terrain-of-a-specified-area/5080/3 "2024-07-12T10:43:06Z")

</div>

See also `coast` -E+c|C
