Note
Click here to download the full example code
Plot - ZvsXY¶
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()
Out:
<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()

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