atomica.plotting.plot_series

atomica.plotting.plot_series(plotdata, plot_type='line', axis=None, data=None, legend_mode=None, lw=None, n_cols=None)[source]

Produce a time series plot

Parameters:
  • plotdata – a PlotData instance to plot

  • plot_type – ‘line’, ‘stacked’, or ‘proportion’ (stacked, normalized to 1)

  • axis – Specify which quantity to group outputs on plots by - can be ‘outputs’, ‘results’, or ‘pops’. A line will be drawn for each of the selected quantity, and any other quantities will appear as separate figures.

  • data – Draw scatter points for data wherever the output label matches a data label. Only draws data if the plot_type is ‘line’

  • legend_mode – override the default legend mode in settings

  • lw – override the default line width

  • n_cols (int) – If None (default), separate figures will be created for each axis. If provided, axes will be tiled as subplots in a single figure window with the requested number of columns

Return type:

list

Returns:

A list of newly created Figures