.. 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 Click :ref:`here ` 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-23 .. raw:: html


.. code-block:: default 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 .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.782 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-python :download:`Download Python source code: demo_bar.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: demo_bar.ipynb `