Note
Go to the end to download the full example code.
Plotting Pareto fronts in 2D#
Various examples using mooplot.plot_pf()
.
import moocore
import mooplot
Plot 2D datasets#
The default is type='points'
.
data = moocore.get_dataset("input1.dat")
# Select only the first 5 datasets
data = data[data[:, -1] <= 5, :]
fig = mooplot.plot_pf(data, title="input1.dat")
fig
Plot a two objective dataset with points and lines
fig = mooplot.plot_pf(data, type="p,l")
fig
Total running time of the script: (0 minutes 0.505 seconds)
Estimated memory usage: 162 MB