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

[Feature Request] expose the colorbar as a standalone graph object

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

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

評価

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

調査の方向性

まず、Dash のグラフが現在どのようにカラーバーを公開しているかを確認し、その動作をリンク先の Stack Overflow の例および matplotlib ColorbarBase の例と比較します。issue ではリポジトリのファイル、テスト、エントリーポイントのいずれも指定されていません。完了条件は、隣接するグラフを必要とせずに、サポート対象のスタンドアロンな Dash カラーバーオブジェクトを提供することです。

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

説明

I tried to post my issue/feature request on the forum but OAuth with Google was not working anymore.

Is your feature request related to a problem? Please describe.
I need to build a custom colorbar for an object that comes from outside of dash but for consistency with the rest of the application, I would like to use a dash based colorbar. My problem is that i don't found any ways to build one without building a graph next to it.

The most promising solution I found on the web is this: https://stackoverflow.com/questions/76963287/plotly-create-standalone-colorbar

but it's just a trick where i would make the real bar disapear.

Describe the solution you'd like
I would like to get access to the colorbar object the same way I have access to it in the matplotlib interface:

import matplotlib.pyplot as plt
import matplotlib as mpl

fig = plt.figure()
ax = fig.add_axes([0.05, 0.80, 0.9, 0.1])

cb = mpl.colorbar.ColorbarBase(ax, orientation='horizontal', 
                               cmap='RdBu')

plt.savefig('just_colorbar', bbox_inches='tight')
Image
主要言語
Python
スター
24.4k
フォーク
2.3k
平均マージ
1日 21時間
マージ済み PR(30日)
19

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

plotly/dash のほかの issue

plotly/dash の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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