Support for units and SI-prefixes
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- rust
調査の方向性
まず egui_plot 内の軸ラベルと軸スケーリングのエントリポイントを特定し、次にラベルと目盛り値が現在どのようにフォーマットされているかを確認します。Issue の例から、サポートする単位と SI プレフィックスの動作を定義します。ラベルに単位が表示され、値が適切なプレフィックスで再スケーリングされ、軸マーカーから先頭または末尾のゼロが削除されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
pyqtgraph supports specifying units as part of the axis labels like so:
self.diff_plot.setLabel('left', "Difference", units='s')
self.diff_plot.setLabel('bottom', "Time", units='s')
This does several things:
- The unit is included in the label. In this case, the labels would read "Difference (s)" and "Time (s)")
- An SI prefix is added and the axis rescaled appropriately. So, if the Y-axis in the example ranged from -10e-9 to 10e-9, the scale value of 1e-9 = n would be used, the axis would be drawn as -10 to 10, and the unit would be displayed as "ns". Naturally the unit would change appropriately as the graph is rescaled.
- The rescaling removes all leading/trailing zeros, reducing the length of the axis markers, which should also reduce issues with the markers being rendered on top of the axis labels.
It would be very cool to see similar functionality in egui_plot.
- 主要言語
- Rust
- スター
- 494
- フォーク
- 110
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
emilk/egui_plot のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 66/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
emilk/egui_plot の issue をすべて見る
似ている issue
-
claim
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Nixitov/Riptide-Native#946 ·
メンテナーはふだん 1 日以内に返信
-
area: ai-assistants documentation help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
BetaBots-LLC/latticegate#17 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 94/100
storytold/craft-libs#5594 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
听歌识曲历史跳转后对应音源界面无法返回オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
LingyunStudio/RustMusic#16 ·