# Add Axis annotation in Inset plot

**URL:** <https://forum.generic-mapping-tools.org/t/add-axis-annotation-in-inset-plot/3554>\
**Category:** Q&A\
**Tags:** gmt\
**Created:** [December 21, 2022, 6:02am UTC](https://forum.generic-mapping-tools.org/t/add-axis-annotation-in-inset-plot/3554 "2022-12-21T06:02:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aqeel-magsi](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@aqeel-magsi](https://forum.generic-mapping-tools.org/u/aqeel-magsi)\
**Post date:** [December 21, 2022, 6:02am UTC](https://forum.generic-mapping-tools.org/t/add-axis-annotation-in-inset-plot/3554/1 "2022-12-21T06:02:39Z")

</div>

Dear All,

I am trying to insert axis values inside the inset plot but could not find a way to do so. Here is my script. If i append +r then inset plot size also expanded.

```
 x=-Bxa5f1
 y=-Bya0.5f0.2
 range=-R130/170/0/1

 gmt inset begin -D130/170/0/1 -Dx0.1/0.5+w14.c/2.5c+o2.4c/0.2c -V

       gmt basemap $range -JX? $x $y -BWSne

        awk '{print $3,$4}' ev_jday.dat |gmt plot -Sc0.3c -Gyellow -W0.5,black

gmt inset end 

```

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/3/3dc379e2685d5e7ddb732e078f26a48ee9844ead.png)

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [December 21, 2022, 12:22pm UTC](https://forum.generic-mapping-tools.org/t/add-axis-annotation-in-inset-plot/3554/2 "2022-12-21T12:22:15Z")

</div>

Looks like you are giving -D twice even though the docs says you can give it in one of three ways. Perhaps the first -D is meant to be -R ?
