.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/basic_usage.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_auto_examples_basic_usage.py: Basic usage =========== A simple example demonstrating how to use mass-composition. Design notes: Once data is loaded chemical analyte names and H2O will conform to the internal standard. .. GENERATED FROM PYTHON SOURCE LINES 11-15 .. code-block:: default import numpy as np import plotly import plotly.graph_objects as go .. GENERATED FROM PYTHON SOURCE LINES 16-20 This is a demo -------------- We create a simple interactive plot .. GENERATED FROM PYTHON SOURCE LINES 21-35 .. code-block:: default fig = go.Figure(data=go.Scatter( y=np.random.randn(500), mode='markers', marker=dict( size=16, color=np.random.randn(500), # set color equal to a variable colorscale='Viridis', # one of plotly colorscales showscale=True ) )) # noinspection PyTypeChecker plotly.io.show(fig) # this call to show will set the thumbnail for use in the gallery .. raw:: html :file: images/sphx_glr_basic_usage_001.html .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.937 seconds) .. _sphx_glr_download_auto_examples_basic_usage.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: basic_usage.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: basic_usage.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_