ZvsXY

from __future__ import annotations

from gemseo import configure_logger
from gemseo import create_benchmark_dataset
from gemseo.post.dataset.zvsxy import ZvsXY

configure_logger()
<RootLogger root (INFO)>

Load the Rosenbrock dataset

dataset = create_benchmark_dataset("RosenbrockDataset")

Plot z vs x and y

We can use the ZvsXY plot

plot = ZvsXY(dataset, x=("x", 0), y=("x", 1), z="rosen")
plot.colormap = "viridis"
plot.execute(save=False, show=True)
rosen
[<Figure size 640x480 with 2 Axes>]

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

Gallery generated by Sphinx-Gallery