matplotlib / matplotlib/napari-matplotlib

Line Plot Widget for sequential data

Offen
#60 8 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

New feature
Vorherrschende Sprache
Python
Sterne
46
Forks
24
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hi @dstansby , hi all,

I currently have a couple local implementations of a plotter with line plots based on metadata.
Data are stored in metadata because sometimes I generate data from intensity images which in napari, as far as I know, do not have 'properties' or 'features'.
I would like to have a general line plotter to import from. Thus, I naturally thought about napari-matplotlib!

To encompass all layer types, including the Image layer, I thought about storing the plotting data as a nested dictionary in the layer metadata, somtehing like:

{'plugin_name':
{'x_data': array},
{'y_data': array},
{'other_data': array} }`

I have some code that works with that kind of structure. Would that be an interesting contribution here?
From a plugin developer's perspective, storing data as a two level dictionary would allow filtering data origin (by 'plugin_name', so different plugins could fit) apart from regular image metadata and then axes would come from the internal keys. @kevinyamauchi , do you think such structure would be interesting?

Here is an example:
![Capture](https://user-images.githubusercontent.com/26173597/199222477-09057492-0038-4f62-864e-651db89f4360.PNG)

For example, for plotting a time series, a developer could include a time dimension array there as well.

If this should not belong here, that's also OK, I could place it somewhere else, just let me know ;)
I can make a Draft PR to further discuss this.

Best,
Marcelo

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

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

Es sind keine Dateien, Tests oder Einstiegspunkte identifiziert. Kläre zunächst die vorgeschlagene Metadatenstruktur und den Umfang des Widgets mit den Maintainer:innen; erledigt wäre ein abgestimmter Implementierungsplan zum Plotten sequenzieller Daten über die relevanten napari-Layertypen hinweg.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
data-visualization
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

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