.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/quickflat/plot_sulci.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_quickflat_plot_sulci.py: ========================= Plot sulci on the flatmap ========================= The sulci are defined in a sub-layer of the sulci layer in //overlays.svg. The parameter `with_sulci` in `quickflat.make_figure` controls displaying the sulci on the surface. .. GENERATED FROM PYTHON SOURCE LINES 13-25 .. image-sg:: /auto_examples/quickflat/images/sphx_glr_plot_sulci_001.png :alt: plot sulci :srcset: /auto_examples/quickflat/images/sphx_glr_plot_sulci_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out Out: .. code-block:: none Generating curvature surface info... /opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/site-packages/scipy/sparse/linalg/_dsolve/linsolve.py:322: SparseEfficiencyWarning: splu requires CSC matrix format warn('splu requires CSC matrix format', SparseEfficiencyWarning) Failed to get connection ** (inkscape:5209): CRITICAL **: 01:27:48.014: dbus_g_proxy_new_for_name: assertion 'connection != NULL' failed ** (inkscape:5209): CRITICAL **: 01:27:48.014: dbus_g_proxy_call: assertion 'DBUS_IS_G_PROXY (proxy)' failed ** (inkscape:5209): CRITICAL **: 01:27:48.014: dbus_g_connection_register_g_object: assertion 'connection != NULL' failed Failed to get connection ** (inkscape:5213): CRITICAL **: 01:27:48.884: dbus_g_proxy_new_for_name: assertion 'connection != NULL' failed ** (inkscape:5213): CRITICAL **: 01:27:48.884: dbus_g_proxy_call: assertion 'DBUS_IS_G_PROXY (proxy)' failed ** (inkscape:5213): CRITICAL **: 01:27:48.884: dbus_g_connection_register_g_object: assertion 'connection != NULL' failed | .. code-block:: default import cortex import numpy as np np.random.seed(1234) # Create a random pycortex Volume volume = cortex.Volume.random(subject='S1', xfmname='fullhead') # Plot a flatmap with the data projected onto the surface # Highlight the curvature and display the sulci _ = cortex.quickflat.make_figure(volume, with_curvature=True, with_sulci=True) .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 9.313 seconds) .. _sphx_glr_download_auto_examples_quickflat_plot_sulci.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_sulci.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_sulci.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_