Plotting Components
NoPlot
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, folder_name='Figures', file_prefix='iteration', callback=None)[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, folder_name='Figures', file_prefix='iteration', callback=None)[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
folder_name (str) – name of the folder to save plots in
callback (None or function) – optional function that accepts ax as an argument
file_prefix (str) – prefix of saved plot file names
TurbineTypePlotComponent