The 2D plots use plotnine, Python’s implementation of ggplot2. If you know ggplot2 from R, you’re already home. If you don’t, the grammar-of-graphics approach means plots build up from layers—data, aesthetics, geometries, scales, themes.
from plotnine import ggplotfrom ggsegpy import geom_brain, dkggplot() + geom_brain(atlas=dk())
Filtering by hemisphere
Often you only need one hemisphere:
ggplot() + geom_brain(atlas=dk(), hemi="left")
ggplot() + geom_brain(atlas=dk(), hemi="right")
Filtering by view
Each hemisphere has lateral (outside) and medial (inside) views: