Subplot position with App Designer
조회 수: 8 (최근 30일)
I am using App Designer on MATLAB R2019a and would like to use a subplot to show different images side to side
I read a document here that explains how to set subplots with new version of MATLAB App Designer but the issue I face is regarding the positioning of such subplot.
I have an App with a panel called MyPanel where I want the subplot to appear. According the link above I do :
app.MyPanel.AutoResizeChildren = 'off';
This create axes randomly set on MyPanel. Then when I want to change the position of my subplot though 'Position' variable, it changes only position of subplot(1,2,1). Next subplot will not be aligned with the previously set position for subplot(1,2,1).
What I am looking to is to set the first size and position of the subplot and then the next subplot(1,2,2) would align and be beside that previous plot.
In other words, when we call subplot, it creates axes by defaults in a certain position in the figure on which it will align coming subplots. I want to change that initial positiont value and let the subplot continue to do its magic on aligning the next subplots.
Hope it clear enough.