ard.viz.utils

Contents

ard.viz.utils#

Functions

get_plot_range(values[, pct_buffer])

get the min and max values for a plot axis with a buffer applied

ard.viz.utils.get_plot_range(values, pct_buffer=5.0)[source]#

get the min and max values for a plot axis with a buffer applied

Parameters:
  • values (np.array) -- the array of values in a given dimension

  • pct_buffer (float, optional) -- percent that should be included as a buffer, by default 5.0

Returns:

  • float -- minimum value for the plot range

  • float -- maximum value for the plot range