Legend display for bubble sizes in geom_point
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 30/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- python
調査の方向性
ファイル、テスト、コードのエントリーポイントについては何も言及されていません。まず、サイズを var1 にマッピングした、提供されている plotnine geom_point の例を再現し、次にその連続サイズ用の凡例がどのように設定されているかを調べてください。凡例で入れ子になった円を表示しつつ、マッピングされたサイズのラベルを維持できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hello - thanks again for your great work to implement ggplot2 functionality in Python!
My question is about an enhancement to the legend created when drawing a geom_point() plot with a size mapped to a continuous variable. Here's a minimal demo example:
import polars as pl
import plotnine as p9
import numpy as np
rng = np.random.default_rng(12345)
n=150
df = pl.DataFrame({
"x": 10 * rng.random(size=n),
"y": 5 * rng.random(size=n),
"var1": 100 * rng.random(size=n),
})
(
p9.ggplot(df, p9.aes("x", "y", size="var1"))
+ p9.geom_point(color='black', fill='white')
)
which creates the following plot with point sizes mapped to var1.
All good so far, but I'd like to show the legend entries as nested circles, rather than the conventional stacked style as shown on the plot. The nested style is not only aesthetically pleasing but makes the relative sizes easier to compare. I have seen this style of legend used in The Economist and The Wall Street Journal as well as other publications. (see example below)
Not sure if ggplot2 offers this out of the box, but think this would be a nice feature!
Thanks
- 主要言語
- Python
- スター
- 4.8k
- フォーク
- 269
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
has2k1/plotnine のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
Feature request: add rotation_mode param to geom_text対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンFeature
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
-
position_dodge2() leaves nested rectangles overlapping対応中かも @MahnoorAhmed999 が 3 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
-
Enhancement
難易度 3/5 半日 初心者へのやさしさ 55/100
-
Enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
has2k1/plotnine の issue をすべて見る
似ている issue
-
Test: to_hijri() accepts datetime.datetime and uses only the date part対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンgood first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
omarelshamy25x/shamy-hijri#63 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
polish
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
521xueweihan/HelloGitHub#4729 ·
-
[Bug]: Score parser reads parts of scientific notation as valid scores対応中かも @AshutoshSingh840 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
UKGovernmentBEIS/control-arena#992 ·
メンテナーはふだん 3 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
mvalentsev/awesome-free-ai-coding#70 ·
メンテナーはふだん 1 日以内に返信