Plot archive quality surfaces, cell activity, and optimisation statistics.
More...
Go to the source code of this file.
|
| | qdpy.plots.plotGridSubplots (data, outputFilename, cmap, featuresBounds=((0., 1.),(0., 1.),(0., 1.),(0., 1.)), fitnessBounds=(0., 1.), drawCbar=True, xlabel="", ylabel="", cBarLabel="", nbBins=None, nbTicks=None, binSizeInInches=0.30) |
| | Plots ########### {{{1.
|
| | qdpy.plots.drawGridInAx (data, ax, cmap, featuresBounds, fitnessBounds, aspect="equal", xlabel="", ylabel="", nbBins=None, nbTicks=5) |
| | qdpy.plots.plotGrid (data, outputFilename, cmap, featuresBounds=[(0., 1.),(0., 1.)], fitnessBounds=(0., 1.), drawCbar=True, xlabel="", ylabel="", cBarLabel="", nbBins=None, nbTicks=None) |
| | qdpy.plots.plot_evals (logger, output_filename, key="max", ylim=None, ylabel=None, figsize=(4., 4.)) |
| | qdpy.plots.plot_iterations (logger, output_filename, key="max", ylim=None, ylabel=None, figsize=(4., 4.)) |
| | qdpy.plots.default_plots_grid (logger, output_dir=None, suffix=None, to_grid_parameters={}, fitness_domain=None) |
Plot archive quality surfaces, cell activity, and optimisation statistics.
Definition in file plots.py.
◆ default_plots_grid()
| qdpy.plots.default_plots_grid |
( |
| logger, |
|
|
| output_dir = None, |
|
|
| suffix = None, |
|
|
| to_grid_parameters = {}, |
|
|
| fitness_domain = None ) |
Save the primary optimiser's evaluation, iteration, quality, and activity plots.
Use the existing Grid, or convert a container using
``to_grid_parameters``. The fitness surface shows the first objective.
The destination directory defaults to the logger's output directory.
Definition at line 319 of file plots.py.
◆ drawGridInAx()
| qdpy.plots.drawGridInAx |
( |
| data, |
|
|
| ax, |
|
|
| cmap, |
|
|
| featuresBounds, |
|
|
| fitnessBounds, |
|
|
| aspect = "equal", |
|
|
| xlabel = "", |
|
|
| ylabel = "", |
|
|
| nbBins = None, |
|
|
| nbTicks = 5 ) |
Draw a two-axis grid in an existing Matplotlib axes.
Position the descriptor labels at grid boundaries and use the
supplied fitness range for colour normalisation. Return the image
artist so callers can attach a colour bar.
Definition at line 118 of file plots.py.
◆ plot_evals()
| qdpy.plots.plot_evals |
( |
| logger, |
|
|
| output_filename, |
|
|
| key = "max", |
|
|
| ylim = None, |
|
|
| ylabel = None, |
|
|
| figsize = (4., 4.) ) |
Save one or more series from the logger's evaluation table.
Definition at line 232 of file plots.py.
◆ plot_iterations()
| qdpy.plots.plot_iterations |
( |
| logger, |
|
|
| output_filename, |
|
|
| key = "max", |
|
|
| ylim = None, |
|
|
| ylabel = None, |
|
|
| figsize = (4., 4.) ) |
Save one or more series from the logger's iteration table.
Definition at line 283 of file plots.py.
◆ plotGrid()
| qdpy.plots.plotGrid |
( |
| data, |
|
|
| outputFilename, |
|
|
| cmap, |
|
|
| featuresBounds = [(0., 1.), (0., 1.)], |
|
|
| fitnessBounds = (0., 1.), |
|
|
| drawCbar = True, |
|
|
| xlabel = "", |
|
|
| ylabel = "", |
|
|
| cBarLabel = "", |
|
|
| nbBins = None, |
|
|
| nbTicks = None ) |
Save a one- or two-axis grid to a file with optional colour bar and descriptor labels.
Definition at line 197 of file plots.py.
◆ plotGridSubplots()
| qdpy.plots.plotGridSubplots |
( |
| data, |
|
|
| outputFilename, |
|
|
| cmap, |
|
|
| featuresBounds = ((0., 1.), (0., 1.), (0., 1.), (0., 1.)), |
|
|
| fitnessBounds = (0., 1.), |
|
|
| drawCbar = True, |
|
|
| xlabel = "", |
|
|
| ylabel = "", |
|
|
| cBarLabel = "", |
|
|
| nbBins = None, |
|
|
| nbTicks = None, |
|
|
| binSizeInInches = 0.30 ) |
Plots ########### {{{1.
Save a grid plot for up to four descriptor axes.
One- and two-axis data use a single panel. Additional axes index
the subplot arrangement. Pass a scalar objective slice such as
``grid.quality_array[..., 0]`` when plotting multiobjective fitness.
Definition at line 46 of file plots.py.