ndecs#

cfplot.ndecs(data: ndarray | list) → int[source]#

Find the maximum number of decimal places in an array.

Data with more decimal places will determine the result. Used to format colorbar and line labels consistently.

Parameters#

dataarray-like

Input array of numeric values

Returns#

int

Maximum number of decimal places found