Discussion about aliases for multi-axis log/power projections

未关闭
#664 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
30/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
julia

调研方向

从 GMT.jl 的 basemap 入口点和现有的投影绑定入手,特别检查 figsize 字符串目前如何应用对数缩放。确定 API 应该使用独立的轴投影,还是使用 logxy 风格的别名,然后验证所选设计支持 issue 中展示的多轴对数投影。

由索引模型根据 Issue 内容生成。

描述

When trying to copy the second GMT tutorial into GMT.jl I have encountered a missing symbol (I think). The GMT command I want to reproduce is:

gmt begin GMT_tut_2
	gmt basemap -R1/10000/1e20/1e25 -JX9il/6il -Bxa2+l"Wavelength (m)" -Bya1pf3+l"Power (W)" -BWS
gmt end show

Both the x and y axis are in a log scale. At the moment, this can be achieved by specifying the l flag to the figsize strings:

function tutorial2()
    basemap(
        region = (1, 10000, 1e20, 1e25),
        figsize = ("9il", "6il"),
        frame = (
            axes = (:left_full, :bottom_full),
            xlabel = "Wavelength (m)",
            ylabel = "Power (W)",
        ),
        xaxis = (annot = 2, ticks = :auto),
        yaxis = (annot = "1p", ticks = 3),
        show = true,
        Vd = 1,
    )
end

However, it would be nice to separate projection and size. Maybe there could be distinct xproj and yproj arguments (larger change, would require rework of existing projection bindings) or just a :logxy projection. Let me know which one of these you prefer, and I will look into an implementation (unless you already have something planned).

EDIT: To stay consistent with the map projection syntax, maybe it would be better to use something like proj = (name = :log, apply = "xy").

主要语言
Julia
星标
223
派生
35
平均合并
8 小时 1 分钟
30 天内合并 PR
9

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

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

GenericMappingTools/GMT.jl 的其他 Issue

查看 GenericMappingTools/GMT.jl 的全部 Issue

相似的 Issue

更多 Julia Issue

把新 issue 发到你的邮箱

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