.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "11_demos\python_packages\plotly\demo_bar.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_11_demos_python_packages_plotly_demo_bar.py: Simple ========= This demo shows how to use the Python ``plotly`` package under itom. In order to show plotly outputs in itom figures, it is only necessary to import the ``itomPlotlyRenderer`` module once at the beginning of your script. This adds an itom specific renderer to Plotly and uses it as default. The plotly outputs are then shown in an itom designerPlugin with the name ``plotlyPlot``. .. GENERATED FROM PYTHON SOURCE LINES 13-31 .. code-block:: Python import itomPlotlyRenderer import plotly.express as px df = px.data.tips() fig = px.bar( df, x="sex", y="total_bill", facet_col="day", color="smoker", barmode="group", template="presentation+plotly", ) fig.update_layout(height=400) fig.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 3.969 seconds) .. _sphx_glr_download_11_demos_python_packages_plotly_demo_bar.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: demo_bar.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: demo_bar.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: demo_bar.zip `