Plotting/visualization utilities

plotting.compare_n_potencies(dfs, labels)[source]

Compares the potencies of n rotations over time.

Parameters:
  • dfs – A list of DataFrames, , output from Samurai.parse_rotation()
  • labels – A list of labels corresponding to each DataFrame
plotting.compare_potencies(dfs, labels)[source]

Compares the potencies of two rotations over time.

Parameters:
  • dfs – A list of DataFrames, output from Samurai.parse_rotation()
  • labels – A list of labels corresponding to each DataFrame
plotting.plot_potency(df, truncate_actions=False)[source]

Plot depicting cumulative potency of a rotation over time.

Parameters:
  • df – A Pandas DataFrame, output from Samurai.parse_rotation()
  • truncate_actions – If True, x-axis labeled as time instead of actions