src.canns.analyzer.plotting.config

Reusable plotting configuration utilities for analyzer visualizations.

Classes

PlotConfig

Unified configuration class for all plotting helpers in canns.analyzer.

PlotConfigs

Collection of commonly used plot configurations.

Module Contents

class src.canns.analyzer.plotting.config.PlotConfig[source]

Unified configuration class for all plotting helpers in canns.analyzer.

This mirrors the behaviour of the previous visualize module so that reorganising the files does not affect the public API. The attributes map directly to keyword arguments exposed by the high-level plotting functions, allowing users to keep existing configuration objects unchanged after the reorganisation.

__post_init__()[source]
classmethod for_animation(time_steps_per_second, **kwargs)[source]

Return configuration tailored for animations.

classmethod for_static_plot(**kwargs)[source]

Return configuration tailored for static plots.

to_matplotlib_kwargs()[source]

Materialize matplotlib keyword arguments from the config.

clabel: str = 'Value'[source]
color: str = 'black'[source]
figsize: tuple[int, int] = (10, 6)[source]
fps: int = 30[source]
grid: bool = False[source]
kwargs: dict[str, Any] | None = None[source]
repeat: bool = True[source]
save_path: str | None = None[source]
show: bool = True[source]
show_legend: bool = True[source]
show_progress_bar: bool = True[source]
time_steps_per_second: int | None = None[source]
title: str = ''[source]
xlabel: str = ''[source]
ylabel: str = ''[source]
class src.canns.analyzer.plotting.config.PlotConfigs[source]

Collection of commonly used plot configurations.

These helpers mirror the presets that existed in canns.analyzer.visualize so that callers relying on them continue to receive the exact same defaults.

static average_firing_rate_plot(mode='per_neuron', **kwargs)[source]
static energy_landscape_1d_animation(**kwargs)[source]
static energy_landscape_1d_static(**kwargs)[source]
static energy_landscape_2d_animation(**kwargs)[source]
static energy_landscape_2d_static(**kwargs)[source]
static grid_cell_manifold_static(**kwargs)[source]
static raster_plot(mode='block', **kwargs)[source]
static theta_population_activity_static(**kwargs)[source]
static theta_sweep_animation(**kwargs)[source]
static tuning_curve(num_bins=50, pref_stim=None, **kwargs)[source]