formatting

formatting#

Full path: exa.core.util.formatting

Functions for scientific formatting.

Functions

format_names(name[, delimiters])

Format the variable names by removing '_' and '.'.

format_unit_string(unit_prefix, unit[, ...])

Return an unit string based on the enclosure sign.

get_prefix(values)

Get multiple unit prefixes.

get_scale(values[, step])

Get the scale of a given NumPy array in given steps.

get_scaling(values)

Return the power of 10 value for given set of values.

get_time_unit(time)

Based on the time in seconds, get a unit and a multiplier for plots.

scientific_rounding(value, uncertainty)

Round a value according to uncertainty using scientific rounding rules.