matplotlib / matplotlib/napari-matplotlib
Line Plot Widget for sequential data
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 46
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Description
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:
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are identified. First clarify the proposed metadata structure and widget scope with maintainers; done would be an agreed implementation plan for plotting sequential data across the relevant napari layer types.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100