def METHOD_NAME(data, variable_config):
    vmin = np.amin(data)
    vmax = np.amax(data)
    if variable_config.is_zero_centered:
        vmax = max(abs(vmax), abs(vmin))
        vmin = -vmax
    if variable_config.unit == "fraction":
        vmin = 0
        vmax = 1
    return vmin, vmax