I have reported the problem with different axes that are displayed on top of other axes within different tabs of a TabPanel in July 2012, Alexander reproduced the problem in January 2013 and in May Collin has reported similar issues.
After I have encountered the problem first I figured out that that changing the DefaultRenderer to painters resolved the issue (set(0,'DefaultFigureRenderer','painters')). If you have a similar problem, could you please confirm that this works for you, too? As I am creating 3d plots this is not an option for me, so after Ben's hint I can confirm that resizing the figure resolves the issue, thus I have written a callback function that automatically resizes the figure after a tab change. Not a nice way but up to now it was a sufficient workaround. However, this option does not work an my MAC computer, as Matlab for MAC (R2013a) crashes non-deterministically when resizing a figure (I had similar issues with closing figures on R2012b on MAC).
Here is a little bit of code to reprocude the problem (works for me on MAC R2012b, MAC R2013a and Linux R2012):
I'd like to use your code for the creation of a volume from an isosurface defined by the vertices and the faces as used by patch. However, the VOXELISE method does not return the expected results. I have created a simple example in order to reproduce the problem:
Am I doing something wrong or is this a bug in the code?
I believe I have found out how to reproduce the problem. If I use 'painters' (default) as figure renderer the problem does not occur. However, when using opengl rendering the above mentionend problem happens.
To reproduce, execute set(0,'DefaultFigureRenderer','OpenGL') before running my example code (text() makes no difference)
Unfortunately, 'painters' is no option for me as I am doing more advanced 3d rendering.
I have messed a bit with drawnow. The simple example I have given is fine by using drawnow. However, if you additionally use the text function in the plot it is not working correctly. Maybe you can reproduce the issue on your system:
Thanks for this toolbox!
Several members have mentioned issues integrating their existing GUIDE layouts with this tool. I found a workaround that did the trick for me.
I was not able to re-parent an existing object (panel or table) into this layout. However, you can create a new GUIDE panel within, for example, an HBox and you can re-parent each item from your existing panel to this new one, then delete your old panel.
new_HBox = uiextras.HBox;
new_GUIDE_panel = uipanel('Parent',new_HBox,'BorderType','none');
children = get(old_GUIDE_panel,'Children');
As long as your original and new panels are equal size, all the objects will be positioned as expected in the newly created panel.
William, This suggestion isn't specific to the GLT, but if you open a command window and launch the executable from there you will be able to see what error is being thrown that takes down the program.
I am using the Layout Toolbox. It is really great tool.
I encounter a problem when delpoying the developed GUI into a *.exe file using the MATLAB deploytool function. The developed GUI can be converted into *.exe file, but when starting *.exe file, it appears quickly and closed by windows immediately. I have tried the demoBrowser.m example, the same error appears. BTW, I'm using it on 32-bit Windows 7 OS.
Any idea on the reason for this?
I am using the Matlab Layout Toolbox too, nice tool, congrats :).
One thing i am interested in is, to cut my application down, if i created a figure with this toolbox and a uipanel and in the uipanel i want to create an axes so it should looks like this:
figure_handle = figure('Position',[(screensize(3)-1100)/2 (screensize(4)-600)/2-20 ...
1100 600],'NumberTitle','off','Name','Test1','ResizeFcn',@ResizeFcnCB, 'HandleVisibility','off','CloseRequestFcn',@CloseRequestFcnCB,'Renderer','OpenGL','PaperPositionMode','auto');
handle_uipanel = uipanel('Parent',figure_handle);
handle_axes = axes('Parent',handle_uipanel);
So then there is an axes, but without a box, i know the command box on and i tried to set it on with:
but then i only can see two lins on top and on the right of the axes. But i want to see a whole box, lines on the top, bottom, right and left.
If i create a figure and plot something into without using the Toolbox it works.
There have been some discussion on this forum recently about GUI Layout Toolbox and R2014b, as there will be significant changes to MATLAB graphics in that release.
* The current public release of GUI Layout Toolbox is not compatible with R2014b.
* We will release an R2014b-compatible version of GUI Layout Toolbox on MATLAB Central at the time of product general release.
* A beta version for R2014b is currently being tested. If you need access during the R2014b prerelease period then please contact Ben and me by email with a brief description of your requirement.