Source code for pyleecan.Methods.Output.XOutput.plot_pareto
import numpy as np
import matplotlib.pyplot as plt
from ....Classes.OptiObjective import OptiObjective
from ....Methods.Output.XOutput import _get_symbol_data_
[docs]def plot_pareto(
self,
x_symbol,
y_symbol,
c_symbol=None,
cmap=None,
ax=None,
title=None,
grid=False,
is_show_fig=True,
save_path=None,
):
"""Plot the pareto front for 2 objective functions
Parameters
----------
self : XOutput
x_symbol : str
symbol of the first objective function
y_symbol: str
symbol of the second objective function
c_symbol: str
optional symbol to set the plot colors
cmap: colormap
optional colormap
is_show_fig : bool
True to show figure after plot
save_path : str
full path of the png file where the figure is saved if save_path is not None
"""
return self.parent.plot_pareto(
x_symbol,
y_symbol,
c_symbol,
cmap,
ax,
title,
grid,
is_show_fig,
save_path,
)