Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

inset: Specifing the region using -Dxmin/xmax/ymin/ymax doesn't work

未关闭
#9,224 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@Esteban82 已经在做这个了。

开始于 2026年9月24日。

  • #9228 来自 @Esteban82 —— 未关闭

评估

这个 Issue 还没有评估数据。

描述

bug

Description of the problem

inset supports the -Dxmin/xmax/ymin/ymax to define the inset region, but it doesn't work as expected.

Full script that generated the error

gmt begin inset pdf
  gmt basemap -R0/40/20/60 -JM6.5i -Bafg -B+glightgreen
  gmt inset begin -D5/15/25/35 -F+gpink+p0.5p
    gmt basemap -Rg -JA20/20/? -Bafg
    gmt text -F+f18p+cTR+tINSET -Dj-0.15i -N
  gmt inset end
  gmt text -F+f18p+cBL+tMAP -Dj0.2i
gmt end show

Full error message

basemap [ERROR]: Offending option -JA20/20/0i

Actual outcome

Expected outcome

System information

  • Operating system: macOS
  • GMT version (gmt --version): 6.7.0
主要语言
C
星标
985
派生
414
平均合并
22 小时 51 分钟
30 天内合并 PR
35

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

GenericMappingTools/gmt 的其他 Issue

查看 GenericMappingTools/gmt 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。