prfmodel.plotting

Plotting functions.

Contains plotting and visualization functions for stimuli, observed and predicted responses, model evaluation, and estimated model parameters. Functions that create a single plot return the figure and axes objects and most accept an existing ax so that they can be combined in a larger figure.

Functions

animate_2d_prf_stimulus(...)

Animate a two-dimensional population receptive field stimulus.

plot_1d_prf_stimulus(→ tuple[matplotlib.figure.Figure, ...)

Plot the design of a one-dimensional population receptive field stimulus.

plot_2d_prf_centers(→ tuple[matplotlib.figure.Figure, ...)

Plot how the centers of two-dimensional population receptive fields (pRFs) are distributed in the visual field.

plot_2d_prf_stimulus(→ tuple[matplotlib.figure.Figure, ...)

Plot a single frame of a two-dimensional population receptive field stimulus.

plot_csf_stimulus_curve(...)

Plot a contrast sensitivity curve over a stimulus design.

plot_csf_stimulus_design(...)

Plot the design of a contrast sensitivity function (CSF) stimulus.

plot_grid_parameter_distribution(...)

Plot how the estimates of a parameter are distributed across the values of a parameter grid.

plot_observed_predicted(...)

Plot an observed timecourse together with one or more predicted timecourses.

plot_parameter_by_roi(...)

Plot the average of a parameter for each region of interest (ROI).

plot_r_squared_comparison(, gridsize, cmap, xlabel, ...)

Compare two sets of R-squared scores unit by unit.

plot_r_squared_hist(, clip, log, xlabel, ax, ...)

Plot the distribution of R-squared scores across units.

plot_response_heatmap(...)

Plot the response of many units over time as a heatmap.

plot_surface_stat_map(, vmin, vmax, cmap, cyclic, ...)

Plot a statistic (e.g., a model parameter or score) on a cortical surface mesh.