.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/dataset/visualization/plot_zvsxy.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_examples_dataset_visualization_plot_zvsxy.py: ZvsXY ===== .. GENERATED FROM PYTHON SOURCE LINES 26-35 .. code-block:: default from __future__ import annotations from gemseo.api import configure_logger from gemseo.api import load_dataset from gemseo.post.dataset.zvsxy import ZvsXY configure_logger() .. rst-class:: sphx-glr-script-out .. code-block:: none .. GENERATED FROM PYTHON SOURCE LINES 36-38 Load the Rosenbrock dataset --------------------------- .. GENERATED FROM PYTHON SOURCE LINES 38-40 .. code-block:: default dataset = load_dataset("RosenbrockDataset") .. GENERATED FROM PYTHON SOURCE LINES 41-44 Plot z vs x and y ----------------- We can use the :class:`.ZvsXY` plot .. GENERATED FROM PYTHON SOURCE LINES 44-47 .. code-block:: default plot = ZvsXY(dataset, x="x", y="x", y_comp=1, z="rosen") plot.colormap = "viridis" plot.execute(save=False, show=True) .. image-sg:: /examples/dataset/visualization/images/sphx_glr_plot_zvsxy_001.png :alt: rosen :srcset: /examples/dataset/visualization/images/sphx_glr_plot_zvsxy_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none [
] .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.181 seconds) .. _sphx_glr_download_examples_dataset_visualization_plot_zvsxy.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_zvsxy.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_zvsxy.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_