neurocarto.views.blueprint
- class neurocarto.views.blueprint.BlueprintView
Show blueprint beside.
Check whether the
ProbeDespimplement protocolProbePlotBlueprintProtocol.- render_blueprint: GlyphRenderer
- __init__(config)
- Parameters:
config (CartoConfig)
- data_blueprint: ColumnDataSource
- property name: str
view name
- property description: str | None
view description. show in help button.
- checkbox_group: CheckboxGroup
- category_legend_div: Div
- set_category_color(category)
- Parameters:
category (dict[str, str])
- cache_probe: Any
- cache_chmap: Any = None
- cache_blueprint: Any = None
- on_visible(visible)
visible state changed callback.
- Parameters:
visible (bool) – new visible state
- on_probe_update(probe, chmap, electrodes)
Invoked when channelmap is changed or electrode’s category is changed.
- Parameters:
probe – probe interface.
chmap – channelmap instance.
electrodes – all electrodes.
- update_blueprint()
- reset_blueprint()
- plot_blueprint(bp, setting, blueprint=None, size=None, offset=None)
- Parameters:
bp (BlueprintFunctions)
setting (dict[int, str])
blueprint (ndarray[tuple[int, ...], dtype[int64]] | None)
size (tuple[int, int] | None)
offset (int | None)
- class neurocarto.views.blueprint.ProbePlotBlueprintProtocol
ProbeDespextension protocol for plotting blueprint beside probe.- view_ext_plot_blueprint(callback, chmap)
- Parameters:
callback (ProbePlotBlueprintCallback)
chmap (Any)
- __init__(*args, **kwargs)
- class neurocarto.views.blueprint.ProbePlotBlueprintCallback
An interface to control
BlueprintView.- channelmap: Any
- blueprint: ndarray[tuple[int, ...], dtype[int64]]
- options: list[str]
option keywords for different visualization purpose. Coule be:
(empty): default
Conflict: show conflict areas.
- reset_blueprint()
- plot_blueprint(colors, size=None, offset=None)
plot blueprint.
- Parameters:
colors (dict[int, str]) – category colors
size (tuple[int, int] | None) – electrode size (width, height)
offset (int | None) – x-axis offset
- set_category_legend(category)
change the category legend in {BlueprintView{
- Parameters:
category (dict[str, str]) – legend dict {C-name: html-color}