Plot Example Retinotopy in Web Viewer

This demo shows how to plot example retinotopy data onto a subject’s brain in a web viewer. In order for this demo to work, you need to download this dataset, but that can also be done automatically through the urllib command that is included.

S1 is the example subject that comes with pycortex, but if you want to plot data onto a different subject, you will need to have them in your filestore.

This demo will not actually open the web viewer for you, but if you run it yourself you will get a viewer showing something like the following.

../../_images/angle_left.png
import cortex
from urllib.request import urlretrieve


# Download and load in retinotopy data
_ = urlretrieve(
    "https://s3.us-west-1.wasabisys.com/glab-public-datasets/S1_retinotopy.hdf",
    "S1_retinotopy.hdf"
)
ret_data = cortex.load("S1_retinotopy.hdf")

# Open the webviewer
cortex.webshow(ret_data)

Gallery generated by Sphinx-Gallery