braincell.vis.compare_values

Contents

braincell.vis.compare_values#

braincell.vis.compare_values(morpho, value_arrays, *, titles=None, cmap=None, vmin=None, vmax=None, value_label=None, layout=None, shape=None, figsize=None, min_branch_angle_deg=25.0, root_layout='type_split', layout_config=None)[source]#

Render the same morphology with multiple value overlays.

Useful for before/after visualisations: compare_values(cell, [v_baseline, v_after_stim]) produces two panels sharing morphology geometry with independent colour scales. When vmin / vmax are explicit they are applied to every panel for a shared range; otherwise each panel auto-scales and receives its own colourbar.

Parameters:
Returns:

figure, axes – The composed figure and per-panel axes.

Return type:

tuple[object, tuple[object, ...]]

Raises:

ValueError – If value_arrays is empty.