def xvar(self, n="", **kwargs):
    """Specifies the X variable to be displayed.

    APDL Command: XVAR

    Parameters
    ----------
    n
        X variable number:

        0 or 1 - Display PLVAR values vs. time (or frequency).

        n - Display PLVAR values vs. variable n (2 to NV [NUMVAR]).

        1 - Interchange time and PLVAR variable numbers with time as the curve parameter.
            PLVAR variable numbers are displayed uniformly spaced along
            X-axis from position 1 to 10.

    Notes
    -----
    Defines the X variable (displayed along the abscissa) against which the
    Y variable(s) [PLVAR] are to be displayed.
    """
    command = f"XVAR,{n}"
    return self.run(command, **kwargs)