MATLAB: How to print the MATLAB figure produced using TREEDISP in MATLAB 7.7 (R2008b)

MATLAB

I would like to print the figure produced by TREEDISP. When I run the following code:
load fisheriris;
t = treefit(meas,species);
treedisp(t,'names',{'SL' 'SW' 'PL' 'PW'});
print -dbmp -r200 myfile
I get the following error:
??? Error using ==> print at 315
No Figure to print.

Best Answer

In order to print the figure produced by TREEDISP, you will first need to make the hidden handle to the figure visible. Please execute the following line of code before printing:
set(0,'showhiddenhandles','on')