function X = makeXTablePlottable(this, XTable)
% Returns a matrix X that is a plottable version of XTable.
% NaNs are canonicalized, Categoricals are int-coded.
%

%   Copyright 2016-2022 The MathWorks, Inc.

XTable = canonicalizePoints(this, XTable);
for v = 1:width(XTable)
    if iscategorical(XTable.(v))
        XTable.(v) = bayesoptim.intCodeCategorical(XTable.(v));
    end
end
X = table2array(XTable);
end
