Abacus Plot

The abacus plot is a way to plot annimal along time. The function uses Plotly to place your points on a scatter plot. ycolumn is used as the y axis and datecollected is used as the x axis. color_column is used to group detections together and assign them a color.

Warning

Input files must include datecollected as a column.

To display the plot in iPython use:

Or use the standard plotting function to save as HTML:

Below is the sample output for blue sharks off of the coast of Nova Scotia.


Abacus Plot Function

abacus_plot.abacus_plot(detections, ycolumn='catalognumber', color_column=None, ipython_display=True, title='Abacus Plot', filename=None)

Creates a plotly abacus plot from a pandas dataframe

Parameters:
  • detections – detection dataframe
  • ycolumn – the series/column for the y axis of the plot
  • color_column – the series/column to group by and assign a color
  • ipython_display – a boolean to show in a notebook
  • title – the title of the plot
  • filename – Plotly filename to write to
Returns:

A plotly scatter plot