Why do I receive an error when running an example from the documentation for GLYPHPLOT in the Statistics Toolbox 6.5 (R13)?

1 view (last 30 days)
I ran the following example from the documentation for the GLYPHPLOT function:
load carsmall
X = [Acceleration Displacement Horsepower MPG Weight];
glyphplot(X, 'Standardize','column', 'Labels',Model, ...
'grid',[2 2], 'page','scroll');
glyphplot(X, 'Glyph','face', 'Labels',Model, 'grid',[2 3], 'page',9);
I received the following error:
??? Error using ==> plot
Invalid line property: 'Labels'.
Error in ==> glyphplot>plotStars at 512
lineh = plot(tipx([1:p 1],:), tipy([1:p 1],:),'-', spokesx, spokesy, '-', ...
Error in ==> glyphplot at 413
lineh = plotStars(Xstd(pagerows,:),pagerows,ctrx,ctry,radius,plotArgs);

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This bug has been fixed for Release 14 SP1 (R14SP1). For previous releases, please read below for any possible workarounds:
This error occurs due to a bug in the example. To work around the problem, replace the text 'Labels' with the text 'ObsLabels'. The same example is given in the MATLAB file help for GLYPHPLOT, which is available by typing "help glyphplot" at the command prompt. The following is the text of that example:
load carsmall
X = [Acceleration Displacement Horsepower MPG Weight];
glyphplot(X, 'Standardize','column', 'ObsLabels',Model, ...
'grid',[2 2], 'page','scroll');

More Answers (0)

Categories

Find more on Graphics Object Programming in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!