MATLAB: Do the names of the data points in the figure generated by the GNAME function change when I start the Basic Fitting Interface in MATLAB

basicdatafittinggnameinterfacelabel;MATLABnameplotpoints

I execute the following code to plot and name data points:
load carsmall
plot(Weight,MPG,'x');
gname(Model);
I click on several data points to name them, and press the Esc key to finish naming. I then start the Basic Fitting Interface by clicking on "Tools -> Basic Fitting" on the figure menu bar. After starting the Basic Fitting Interface, I proceed to name more points using the GNAME function:
gname(Model);
Upon clicking on the same points that I have named before, different names appear on top of the existing names, meaning the names of the data points have changed unexpectedly.

Best Answer

This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, please read below for any possible workarounds:
We have verified that there is a bug in MATLAB 7.0.1 (R14SP1) and previous versions in the way that the Basic Fitting Interface handles data.
To work around this issue, sort the "x" data before plotting. The following is an example:
load carsmall
[Weight, index] = sort(Weight);
MPG = MPG(index);
Model = Model(index, :);
plot(Weight,MPG,'x');
gname(Model);