ibllib.atlas.flatmaps

Module that hold techniques to project the brain volume onto 2D images for visualisation purposes

Functions

circles

param N

number of circles

plot_swanson

Displays the 2D image corresponding to the swanson flatmap.

swanson

circles(N=5, atlas=None, display='flat')[source]
Parameters
  • N – number of circles

  • atlas – brain atlas at 25 m

  • display – “flat” or “pyramid”

Returns

2D map of indices, ap_coordinate, ml_coordinate

swanson(filename='swanson2allen.npz')[source]
plot_swanson(acronyms=None, values=None, ax=None, hemisphere=None, br=None, **kwargs)[source]

Displays the 2D image corresponding to the swanson flatmap. This case is different from the others in the sense that only a region maps to another regions, there is no correspondency from the spatial 3D coordinates.

Parameters
  • acronyms

  • values

  • hemisphere – hemisphere to display, options are ‘left’, ‘right’ or ‘both’

  • br – ibllib.atlas.BrainRegions object

  • ax

  • kwargs

Returns