Plotting Components

NoPlot

class topfarm.plotting.NoPlot[source]

Plotting component for no plotting

__init__()

XYPlotComp

class topfarm.plotting.XYPlotComp(memory=10, delay=0.001, plot_initial=True, plot_improvements_only=False, ax=None, legendloc=1, save_plot_per_iteration=False)[source]

Plotting component for turbine locations

__init__(memory=10, delay=0.001, plot_initial=True, plot_improvements_only=False, ax=None, legendloc=1, save_plot_per_iteration=False)[source]

Initialize component for plotting turbine locations

Parameters
  • memory (int, optional) – Number of previous iterations to remember

  • delay (float, optional) – Time delay in seconds between plotting updates

  • plot_initial (bool, optional) – Flag to plot the initial turbine locations

  • plot_improvements_only (bool, optional) – Flag to plot only improvements in cost

  • ax (matplotlib axes, optional) – Axes into which to make the plot

  • legendloc (int) – Location of the legend in the plot

TurbineTypePlotComponent

class topfarm.plotting.TurbineTypePlotComponent(turbine_type_names, **kwargs)[source]

Plotting component for turbine types

__init__(turbine_type_names, **kwargs)[source]

Initialize component for plotting turbine types

Parameters
  • turbine_type_names (list of str) – Names of turbine types for legend

  • **kwargs (keyword arguments, optional) – Keyword arguments that can be passed into XYPlotComp