SpikeInterface / SpikeInterface/spikeinterface

changing color of the channels in plot_timeseries (basic)

Open
#2,185 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement widgets
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.