plotly / plotly/plotly.js

add a way to make the lasso selection of a plotly express scatter_matrix restrictive instead of additive

Offen
#6,818 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

feature P3
Vorherrschende Sprache
JavaScript
Sterne
18.3k
Forks
2k
Ø Merge
2 T. 12 Std.
Gemergte PRs (30 T.)
28

Beschreibung

When creating a scatter_matrix using plotly express:

import plotly.express as px
df = px.data.iris()
fig = px.scatter_matrix(df,
    dimensions=df.columns[0:4],
    color=df.columns[4])
fig.update_layout(
    autosize=False,
    width=1200,
    height=1200,
)
fig.show()

then highlighting a subset of the data using the lasso or rectangular selection tool also highlights the corresponding points in the other graphs.

However, when marking points in two plots I would often prefer that not the union of those are highlighted but the intersection. In the example image below this would mean that only a few red and green points are still visible/highlighted, but no blue points.

This is the feature I would like to have: A way to control whether the union or the intersection of all selections are highlighted.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit nachzuverfolgen, wie Lasso- und rechteckige Auswahlen im scatter_matrix-Beispiel in plotly.js weitergegeben werden. Definiere und implementiere eine Möglichkeit, das Verhalten für Vereinigung oder Schnittmenge auszuwählen, und überprüfe anschließend, dass Auswahlen in mehreren Diagrammen genau die angeforderte kombinierte Menge hervorheben.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
data-visualization
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.