circle_bundles.get_local_pca
- circle_bundles.get_local_pca(data, U, *, f=None, to_view=None, n_components=2, n_cols=3, titles='default', font_size=16, point_size=10.0, cmap='hsv', show_colorbar=False, save_path=None, show=True)[source]
Compute and plot local PCA embeddings for fibers of a cover.
- Each fiber j is plotted using:
data[U[j]] (points) f[j, U[j]] (colors, if provided)
If f is provided and show_colorbar=True, a single shared colorbar with range [0, 2π] is added in a dedicated GridSpec column (so subplots don’t get squashed).
- Returns:
Matplotlib figure and flat list of axes.
- Return type:
fig, axes
- Parameters: