.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/tree/plot_style_tree.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_gallery_tree_plot_style_tree.py: Style hierarchy =============== This example shows a few elements from ``iplotx``'s style hierarchy. .. GENERATED FROM PYTHON SOURCE LINES 7-43 .. image-sg:: /gallery/tree/images/sphx_glr_plot_style_tree_001.png :alt: plot style tree :srcset: /gallery/tree/images/sphx_glr_plot_style_tree_001.png :class: sphx-glr-single-img .. code-block:: Python import matplotlib.pyplot as plt import iplotx as ipx tree = { "name": "style", "children": [ { "name": "vertex", "children": [ { "name": "size", }, {"name": "..."}, ], }, {"name": "..."}, ], } tree = ipx.ingest.providers.tree.simple.SimpleTree.from_dict(tree) fig, ax = plt.subplots(figsize=(4, 2.5)) ipx.tree( tree, ax=ax, vertex_labels=True, vertex_size=[(50, 25)] * 5, vertex_facecolor="none", vertex_edgecolor="black", vertex_linewidth=1.5, vertex_marker="r", vertex_label_horizontalalignment="center", vertex_label_hmargin=0, margins=(0.1, 0.1), ) ax.invert_yaxis() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.033 seconds) .. _sphx_glr_download_gallery_tree_plot_style_tree.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_style_tree.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_style_tree.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_style_tree.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_