GenericMappingTools / GenericMappingTools/gmt

Wrong projection inside `inset`

Open
#7,005 16 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C
Stars
979
Forks
414
Avg merge
17h 26m
Merged PRs (30d)
54

Description

See this. The inset map is wrong. The red dot should be on the coastline

```
gmt begin inseto png
gmt coast -Rd -JN0.0/14c -Baf -BWSen -Ggray -W0.5 -Da
gmt inset begin -F+gwhite+p0.5,blue -Dg63/30+jBL+w1.4
gmt coast -R65.9/66.7/25.1/25.9 -JM1.4 -Dfull -Gorange -W0.5
echo 66.6666667 25.2833333 | gmt plot -Gdarkred -Sc0.1
gmt inset end
gmt end show
```
![inseto](https://user-images.githubusercontent.com/537321/186995630-99665246-057f-4849-8a1f-c92fe3a3cacf.png)

If we make it ``echo 66.6666667 25.2833333 | gmt plot -Gdarkred -Sc0.1 -JM1.4`` then the inset map is correct. But I find it very weird that adding ``-JN0.0/1.4c`` instead, also plots the correct result. So, what is the second (in the inset plot) plotting command doing?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.