AFQ.viz.plot#

Module Contents#

Functions#

visualize_tract_profiles(tract_profiles[, scalar, ...])

Visualize all tract profiles for a scalar in one plot

visualize_gif_inline(fname[, use_s3fs])

Display a gif inline, possible from s3fs

AFQ.viz.plot.visualize_tract_profiles(tract_profiles, scalar='dti_fa', ylim=None, n_boot=1000, file_name=None, positions=vut.POSITIONS)[source]#

Visualize all tract profiles for a scalar in one plot

Parameters
tract_profilesstring

Path to CSV containing tract_profiles.

scalarstring, optional

Scalar to use in plots. Default: “dti_fa”.

ylimlist of 2 floats, optional

Minimum and maximum value used for y-axis bounds. If None, ylim is not set. Default: None

n_bootint, optional

Number of bootstrap resamples for seaborn to use to estimate the ci. Default: 1000

file_namestring, optional

File name to save figure to if not None. Default: None

positionsdictionary, optional

Dictionary that maps bundle names to position in plot. Default: vut.POSITIONS

Returns
Matplotlib figure and axes.
AFQ.viz.plot.visualize_gif_inline(fname, use_s3fs=False)[source]#

Display a gif inline, possible from s3fs