exa.core.util.formatting.get_scale#
- get_scale(values, step=3)#
Get the scale of a given NumPy array in given steps.
Scale of 1000 is 3, scale of 1001 is 6 for step=3.
- Parameters:
values (nd.array) – A NumPy array containing the values which scale will be determined.
step (int) – A step in which the scale can grow.
- Return type:
Returns: scale of the largest (absolute) value in values as int.