.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/07_topology_maps/plot_03_component_planes.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 or to run this example in your browser via Binder. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_07_topology_maps_plot_03_component_planes.py: TRNMap component planes ======================= The nodes of a TRNMap carry codebook vectors in the original space. Drawing the map once per variable, with the nodes shaded by that variable, gives *component planes*: correlated variables produce similar shadings, and cluster borders show up as sharp changes. Here the map of the S curve is shaded by its three coordinates; the vertical coordinate varies along the unrolled sheet, the depth across it. .. GENERATED FROM PYTHON SOURCE LINES 12-24 .. image-sg:: /auto_examples/07_topology_maps/images/sphx_glr_plot_03_component_planes_001.png :alt: x, y, z :srcset: /auto_examples/07_topology_maps/images/sphx_glr_plot_03_component_planes_001.png :class: sphx-glr-single-img .. code-block:: Python from graphclust import TRNMap from graphclust.datasets import make_s_curve from graphclust.plotting import plot_component_planes X, t = make_s_curve(2000, random_state=0) # [snippet:planes] tm = TRNMap(n_nodes=150, random_state=0).fit(X) fig = plot_component_planes(tm.embedding_, tm.nodes_, tm.adjacency_, feature_names=["x", "y", "z"], ncols=3) # [/snippet:planes] .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.786 seconds) .. _sphx_glr_download_auto_examples_07_topology_maps_plot_03_component_planes.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: binder-badge .. image:: images/binder_badge_logo.svg :target: https://mybinder.org/v2/gh/ComplexSystemsIntelligence/graphclust/main?urlpath=lab/tree/notebooks/auto_examples/07_topology_maps/plot_03_component_planes.ipynb :alt: Launch binder :width: 150 px .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_03_component_planes.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_03_component_planes.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_03_component_planes.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_