Plot - ZvsXY

from __future__ import annotations

from gemseo.api import configure_logger
from gemseo.api import load_dataset
from gemseo.post.dataset.zvsxy import ZvsXY
from matplotlib import pyplot as plt

configure_logger()
<RootLogger root (INFO)>

Load the Rosenbrock dataset

dataset = load_dataset("RosenbrockDataset")

Plot z vs x and y

We can use the ZvsXY plot

plot = ZvsXY(dataset, x="x", x_comp=0, y="x", y_comp=1, z="rosen")
plot.colormap = "viridis"
plot.execute(save=False, show=False)
# Workaround for HTML rendering, instead of ``show=True``
plt.show()
rosen

Total running time of the script: ( 0 minutes 0.196 seconds)

Gallery generated by Sphinx-Gallery