Skip to content

fix unit presence time_range#4571

Open
tayheau wants to merge 2 commits intoSpikeInterface:mainfrom
tayheau:unit_presence_fix
Open

fix unit presence time_range#4571
tayheau wants to merge 2 commits intoSpikeInterface:mainfrom
tayheau:unit_presence_fix

Conversation

@tayheau
Copy link
Copy Markdown
Contributor

@tayheau tayheau commented Apr 29, 2026

Fix time_range support by handling duration/offset properly when time_range is set + switch from matshow to imshow with correct extent

@chrishalcrow
Copy link
Copy Markdown
Member

chrishalcrow commented Apr 30, 2026

@tayheau add some description to the PR please!

Comment on lines +116 to +118
im = self.ax.imshow(
map, cmap="inferno", aspect="auto", interpolation="nearest", extent=extent, vmax=1.0, vmin=0.0
)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious - why switch from matshow to imshow?

Copy link
Copy Markdown
Member

@chrishalcrow chrishalcrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes bug in time_range for plot_unit_presence- thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants