Plotting utilities#

pygmo.plotting.plot_non_dominated_fronts(points, marker='o', comp=[0, 1], axes=None)#

Plots the nondominated fronts of a set of points. Makes use of fast_non_dominated_sorting to compute the non dominated fronts.

Parameters
  • points (2d array-like) – points to plot

  • marker (str) – matplotlib marker used to plot the points

  • comp (list) – Components to be considered in the two dimensional plot (useful in many-objectives cases)

  • axes – plot axes (if None, new axes will be created)

Returns

the input axes or a new axes instance

Examples

>>> from pygmo import *
>>> prob = problem(zdt())
>>> pop = population(prob, 40)
>>> ax = plot_non_dominated_fronts(pop.get_f())