Why does the ISOSURFACE function behave differently when plotting a surface on a figure window as compared to plotting on an axis in GUIDE in MATLAB 6.5 (R13)?

8 views (last 30 days)
I have developed a GUI to generate an isosurface. When I run the application I do not get the surface as a 3-D surface. I see only the 2-D view. However, if in the application I create a new figure window and then plot the surface on this new figure window, the same piece of code renders the figure correctly. Why is this happening?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, please read below for any possible workarounds:
This is a bug in MATLAB in the way that the ISOSURFACE function updates the properties of the axis in GUIDE.
Currently, to work around this issue, change the properties of the axes in the GUI figure with the following code:
view(3);
camlight; lighting gourand

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!