neuralib.dashboard.view_brain.BrainView

class neuralib.dashboard.view_brain.BrainView[source]

Bases: AbstractBrainView

__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

__init__()[source]
property brain_image: ndarray
property height: float | None
list_renders(pattern=None, recursive=False)

list all renders for those name contain pattern.

Parameters:
  • pattern (str | None) – str in attribute name

  • recursive (bool) – recursive find all renders from ViewComponent attributes.

Returns:

Return type:

list[GlyphRenderer]

plot(fig, palette='Greys256')

plot data in figure.

Parameters:
  • fig (figure) – Figure.

  • kwargs – plotting parameters.

set_visible(visible, pattern=None)

Set the visible state of renders for those name contain pattern. It is a recursive function that it also update the renders inside the ViewComponent attributes.

Parameters:
  • visible (bool)

  • pattern (str | None) – str in attribute name

update(x=0, y=0)

update the plot

Parameters:
  • x (float)

  • y (float)

property width: float | None
data_brain_slice: ColumnDataSource
render_brain_slice: GlyphRenderer