SpikeInterface / SpikeInterface/spikeinterface
changing color of the channels in plot_timeseries (basic)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 847
- Forks
- 280
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 29
Description
hi, I am trying to change the colours of the time series plot, is it possible to give a particular colour to a particular channel id ?
recording_rhs.set_channel_groups(channel_ids=recording_rhs.get_channel_ids(), groups=['red', 'green', 'blue', 'black'])
w2 = sw.plot_timeseries({"Raw Data": recording_rhs},color_groups=True, time_range=(120, 420),clim = (-50, 50), order_channel_by_depth= False, show_channel_ids=True)#,backend='ipywidgets' )
something like this, but the channel colors are being very different !
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
Start with the plot_timeseries entry point and the set_channel_groups call shown in the issue, then trace how color_groups maps channel groups to plotted channels. Confirm whether channel IDs can be associated with explicit colors and define completion as each requested channel consistently using its assigned color in the time-series plot.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100