Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simpler raster view #223

Open
khl02007 opened this issue Aug 16, 2023 · 0 comments
Open

Simpler raster view #223

khl02007 opened this issue Aug 16, 2023 · 0 comments

Comments

@khl02007
Copy link
Contributor

@magland

Currently I add a raster view like this:

plot_items = []
for unit_id, spike_times in good_units.items():
    if len(spike_times) > 0:
        plot_items.append(
            vv.RasterPlotItem(
                unit_id=f'{unit_id}',
                spike_times_sec=spike_times.astype(np.float32)
            )
        )
view_raster_plot = vv.RasterPlot(
    start_time_sec=time[0],
    end_time_sec=time[-1],
    plots=plot_items
)

This results in an interactive view where if you hover over the raster with your mouse, it highlights a row (unit). It is also linked to a units table. I don't really need this feature and would rather have the raster view be static so that it updates quickly as I scroll through the data. Is that kind of simpler rasterview already available?

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

No branches or pull requests

1 participant