neuralib.dashboard.view_brain.AbstractBrainView
- class neuralib.dashboard.view_brain.AbstractBrainView[source]
Bases:
ViewComponent- render_brain_slice: GlyphRenderer
- data_brain_slice: ColumnDataSource
- property width: float | None
- property height: float | None
- plot(fig, palette='Greys256')[source]
plot data in figure.
- Parameters:
fig (figure) – Figure.
kwargs – plotting parameters.
- abstract property brain_image: ndarray
- 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
ViewComponentattributes.
- Returns:
- Return type:
list[GlyphRenderer]
- 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
ViewComponentattributes.- Parameters:
visible (bool)
pattern (str | None) – str in attribute name