plotly / plotly/plotly.py

Add support for multiple imshow on the same plot, with opacity slider

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

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

feature P3
主要言語
Python
スター
18.8k
フォーク
2.8k
平均マージ
16時間 26分
マージ済み PR(30日)
21

説明

This displays two imshow images in two different tabs:

import plotly.express as px
import numpy as np
from skimage import io

img = io.imread('https://upload.wikimedia.org/wikipedia/commons/thumb/0/00/Crab_Nebula.jpg/240px-Crab_Nebula.jpg')
fig = px.imshow(img)

x = np.random.random((100, 200))
fig2 = px.imshow(x)

fig.show()
fig2.show()

Is there planned support for displaying the two "imshow" on the same plot, with an opacity slider for both layers?

(even if the two 2D-arrays are of different shape - this is possible in matplotlib with the extent parameter of imshow)

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

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

はじめの一歩

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

調査の方向性

まず、例に示されている既存の px.imshow の動作と、Plotly が画像レイヤーをどのように表現しているかを調べます。issue ではファイルやテストは指定されていません。完了の条件は、形状が異なる可能性のある2つの画像を1つのプロット上に表示し、両方のレイヤーに対する不透明度のコントロールを備えることです。

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

評価

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

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

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