-
Notifications
You must be signed in to change notification settings - Fork 234
Description
Description of the problem
When plotting a point in an inset, it is drawn in the wrong geographic location.
Full code that generated the error
import pygmt
region = [-117.628, -117.478, 35.605, 35.801]
fig = pygmt.Figure()
pygmt.makecpt(
cmap='etopo1',
series='0/2800/200',
continuous=True
)
topo_data = "@earth_relief_01s"
fig.grdimage(
grid=topo_data,
region=region,
projection='M4i',
shading=True,
frame=True
)
with fig.inset(position="jTR+w3c", box="+pblack"):
# Use a plotting function to create a figure inside the inset
fig.coast(
region=[-125, -110, 30, 45],
projection="M3c",
land="gray",
borders=[1, 2],
shorelines="1/thin",
water="white"
)
fig.plot(x=-117.55, y=35.7, size=[0.2], style="c", color="black")
fig.show()
System information
Please paste the output of python -c "import pygmt; pygmt.show_versions()"
:
PyGMT information:
version: v0.6.0
System information:
python: 3.10.0 (tags/v3.10.0:b494f59, Oct 4 2021, 19:00:18) [MSC v.1929 64 bit (AMD64)]
executable: C:\Users\eyals\AppData\Local\Programs\Python\Python310\python.exe
machine: Windows-10-10.0.19044-SP0
Dependency information:
numpy: 1.21.2
pandas: 1.3.3
xarray: 0.19.0
netCDF4: 1.5.7
packaging: 21.0
ghostscript: 9.54.0
gmt: 6.3.0
GMT library information:
binary dir: C:/Users/eyals/AppData/Local/Programs/Python/Python310
cores: 4
grid layout: rows
library path: c:/programs/gmt6/bin/gmt_w64.dll
padding: 2
plugin dir: c:/programs/gmt6/bin/gmt_plugins
share dir: c:/programs/gmt6/share
version: 6.3.0