.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_data.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_plot_data.py: Tutorial 01: Simple plot of cortical surface data ================================================= Example script to plot simple data to cortical surface .. GENERATED FROM PYTHON SOURCE LINES 6-30 .. code-block:: Python from surface_plot import plot_surface import numpy as np outdir = 'data/simple_plot/test_figures' clobber = False # Load data data_left = np.loadtxt('https://www.dropbox.com/s/lezvpw14iw13d9r/data_left.mean?dl=1', skiprows=1) data_right = np.loadtxt('https://www.dropbox.com/s/lm3e6ykjm7rhdi5/data_right.mean?dl=1', skiprows=1) data = {'left': data_left, 'right': data_right} # Plot mean data - automatic limits output = f'{outdir}/simple_autolim.pdf' plot_surface.plot_surface(data, output, clobber=clobber) # Plot mean data - predetermined limits output = f'{outdir}/simple_withlim.pdf' plot_surface.plot_surface(data, output, vlim=[0, 2.5], cbar_loc='bottom', clobber=clobber) # Plot mean data - predetermined limits with title output = f'{outdir}/simple_withlim_title.pdf' plot_surface.plot_surface(data, output, vlim=[0.5, 3], cbar_loc='bottom', title='PiB uptake', cbar_title='Mean SUVR', clobber=clobber) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 33.157 seconds) .. _sphx_glr_download_auto_examples_plot_data.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_data.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_data.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_data.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_