BarChart.set_x_y_limits

BarChart.set_x_y_limits(df: pandas.core.frame.DataFrame, i: int, ax: matplotlib.axes._axes.Axes)

Set axis limits for both x and y of passed axes object

For use with fixed_max to set the figure as the highest/lowest value in entire dataframe otherwise takes min/max from each timestep Fixed_max applies to both x & y

Parameters
  • df (pd.DataFrame) – DataFrame to take min/max from

  • i (int) – Frame number to slice DataFrame on if used without fixed_max

  • ax (matplotlib.pyplot.Axes) – Axes to apply limits to