cogwheel.plotting.latex_val_err

cogwheel.plotting.latex_val_err(value, error)

Pass a value and its uncertainty, return a latex string ‘$value_{-err_minus}^{+err_plus}$’ with the significant figures given by the uncertainties.

Parameters:
valuefloat
errorsequence with two floats

(err_minus, err_plus)