neuralib.dashboard.view_brain.AbstractBrainView

class neuralib.dashboard.view_brain.AbstractBrainView[source]

Bases: ViewComponent

__init__()[source]

Methods

__init__()

list_renders([pattern, recursive])

list all renders for those name contain pattern.

plot(fig[, palette])

plot data in figure.

set_visible(visible[, pattern])

Set the visible state of renders for those name contain pattern.

update([x, y])

update the plot

Attributes

brain_image

height

width

data_brain_slice

render_brain_slice

render_brain_slice: GlyphRenderer
__init__()[source]
data_brain_slice: ColumnDataSource
property width: float | None
property height: float | None
plot(fig, palette='Greys256', **kwargs)[source]

plot data in figure.

Parameters:
  • fig (figure) – Figure.

  • kwargs – plotting parameters.

abstract property brain_image: ndarray | None
update(x=0, y=0)[source]

update the plot

Parameters:
  • x (float)

  • y (float)