Custom labels on axis

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
rust

調査の方向性

まず、PlotMemory、Plot API、および既存の x_axis_formatter/y_axis_formatter の処理を特定します。既存のフォーマットを維持しつつ、カスタムラベルで軸の太さを公開すべきか、内部的に実装すべきかを判断します。y 軸に沿ってラベルを一貫した間隔とフォーマットで配置できれば完了です。

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

説明

I wanted to put some labels on top of the y axis (similar to TradingView, see the video), but right now there is no way of getting axis thickness, so I can't make it look pretty.

https://github.com/user-attachments/assets/81480f0f-4b37-4ad5-b489-f47d952583c9

Describe the solution you'd like

Possible solutions:

  1. Expose x_axis_thickness/y_axis_thickness from PlotMemory, however it will be hard to get the same label formatting that we get from x_axis_formatter/x_axis_formatter
  2. Implement these labels internally and expose them in Plot API, but I'm not sure that anyone besides me needs them

Additional context
That's what I got with an exposed y_axis_thickness

https://github.com/user-attachments/assets/c6b347a9-6107-40ca-9d44-0d42ee13a856

主要言語
Rust
スター
494
フォーク
110
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

emilk/egui_plot のほかの issue

emilk/egui_plot の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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