.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/02_matrix_views/plot_07_paoh.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_02_matrix_views_plot_07_paoh.py: PAOH: a dynamic hypergraph without clutter ========================================== The Parallel Aggregated Ordered Hypergraph view (Valdivia et al. 2021) draws vertices as rows and hyperedges as vertical segments, grouped by time. Here a sample of synthetic news articles is shown: each article is a hyperedge of themes, and the three periods reveal how the mix of narratives changes. .. GENERATED FROM PYTHON SOURCE LINES 12-24 .. image-sg:: /auto_examples/02_matrix_views/images/sphx_glr_plot_07_paoh_001.png :alt: plot 07 paoh :srcset: /auto_examples/02_matrix_views/images/sphx_glr_plot_07_paoh_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none TemporalHypergraph(name='news themes', n_nodes=24, n_edges=42) ['2021', '2022', '2023'] | .. code-block:: Python import matplotlib.pyplot as plt import hatvis as hv from hatvis.plotting import plot_paoh T = hv.datasets.make_news_transactions(n_per_period=14, random_state=0) print(T, T.times) # [snippet:paoh] ax = plot_paoh(T, time="time") # [/snippet:paoh] ax.figure.set_size_inches(11, 5.5) plt.tight_layout() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.283 seconds) .. _sphx_glr_download_auto_examples_02_matrix_views_plot_07_paoh.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/hatvis/main?urlpath=lab/tree/notebooks/auto_examples/02_matrix_views/plot_07_paoh.ipynb :alt: Launch binder :width: 150 px .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_07_paoh.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_07_paoh.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_07_paoh.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_