def plot_char_rb_quantities(ax, qoi, **kw):
    """
    Plots a text message of the main quantities extracted from char rb
    """

    def gen_val_str(alpha, alpha_p):

        val_str = "   {:.3f}$\pm${:.3f}    {:.3f}$\pm${:.3f}"
        return val_str.format(
            alpha.nominal_value, alpha.std_dev, alpha_p.nominal_value, alpha_p.std_dev
        )

    alpha_msg = "            Reference         Interleaved"
    alpha_msg += "\n" r"$\alpha_{1|2}$" + "\t"
    alpha_msg += gen_val_str(qoi["alpha1"], qoi["alpha1_CZ_int"])
    alpha_msg += "\n" r"$\alpha_{2|1}$" + "\t"
    alpha_msg += gen_val_str(qoi["alpha2"], qoi["alpha2_CZ_int"])
    alpha_msg += "\n" r"$\alpha_{12}$" + "\t"
    alpha_msg += gen_val_str(qoi["alpha12"], qoi["alpha12_CZ_int"])
    alpha_msg += "\n" + "_" * 40 + "\n"

    alpha_msg += "\n" r"$\epsilon_{Ref.}$" + "\t"
    alpha_msg += "{:.3f}$\pm${:.3f}%".format(
        qoi["eps_ref"].nominal_value * 100, qoi["eps_ref"].std_dev * 100
    )
    alpha_msg += "\n" r"$\epsilon_{Int.}$" + "\t"
    alpha_msg += "{:.3f}$\pm${:.3f}%".format(
        qoi["eps_int"].nominal_value * 100, qoi["eps_int"].std_dev * 100
    )
    alpha_msg += "\n" r"$\epsilon_{CZ.}$" + "\t"
    alpha_msg += "{:.3f}$\pm${:.3f}%".format(
        qoi["eps_CZ"].nominal_value * 100, qoi["eps_CZ"].std_dev * 100
    )

    ax.text(1.05, 0.0, alpha_msg, transform=ax.transAxes)