Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Figure.barb: Plot wind barbs in 2-D and 3-D

オープン
#4,232 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python

調査の方向性

Figure.barb のエントリポイントとリンク先の GMT barb ドキュメントから始め、サンプル入力ファイルとオプションチェックリストを使って wrapper の対象範囲を把握します。完了の条件は、初期の PyGMT 実装が、提示された 2-D および 3-D の wind-barb プロット要件と文書化されたオプションをサポートし、チュートリアルまたはギャラリーの例が追跡対象の作業として扱われていることです。

索引モデルが issue の本文から書いたものです。

説明

feature request help wanted

This issue serves as the central place for discussing and tracking the implementation of the Figure.barb() method in PyGMT. The issue will be closed when the initial implementation is complete. Progress is tracked at https://github.com/orgs/GenericMappingTools/projects/3.

Example

input data: barbs_strength.txt, barbs_direction.txt


import pygmt

pen_barb = "0.5p,darkorange"
fill_barb = "brown"

fig = pygmt.Figure()
fig.basemap(region=[-5, 5] * 2, projection="X10c", frame=0)

for barbs_data, use_word in zip(
    ["barbs_strength.txt", "barbs_direction.txt"], [1, 0]
):
    with pygmt.clib.Session() as session:
        session.call_module(
            'barb',
            '{} \
            -W{} \
            -G{} \
            -Q{}' \
            .format(barbs_data, pen_barb, fill_barb, '0.5c')
        )
    fig.text(barbs_data, offset="0c/-0.05c", justify="TC", font="5p", use_word=use_word)
fig.show()
Image

Documentation

GMT Option Flags and Modifieres

☑️: Implemented; ⬜: To be implemented/discussed; Strikethrough: Won't implement.

  • -R: region #XXX
  • -J: projection #XXX
  • -B: frame
  • -G: fill
  • -W: pen
  • -Q:
  • -C: cmap
  • -D:
  • -I:
  • -N: no_clip
  • -U: Use Figure.timestamp instead.
  • -X/-Y: Use Figure.shift_origin instead.
  • --PAR=value: Use pygmt.config instead.

Notes on Input Formats

Add any notes on the input formats, especially the meaning of columns.

Linked Pull Requests

  • Initial feature implementation #XXX
  • Add a tutorial or gallery example

Related Issues and Discussions

Add links to related wrapper discussions, API design threads, or upstream GMT changes here.

主要言語
Python
スター
875
フォーク
256
平均マージ
2日 21時間
マージ済み PR(30日)
41

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

GenericMappingTools/pygmt のほかの issue

GenericMappingTools/pygmt の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。