I have a question regarding managing tiles layout.
I would like to change the organization of the layout after the tiles have already been created (for instance, for adding or removing a tile).
I thought I could just modify the GridSize property of the TiledChartLayout object after getting its handle.
However, when I try this approach, I get:
"Unable to set GridSize when TiledChartLayout is not empty"
So, it is unclear to me how to actually manage this situation.
plot([1 2 3],[4 5 6],'-o');
Imagine that now, after creating the figure, I would like to add a second tile, organising tiles in 2 rows and one column.
I was thinking I could simply do:
plot([1 2 3],-[4 5 6],'-s');
but it is not working. I get an error when trying to change the grid size (tl.GridSize=[2 1])
Unable to set GridSize when TiledChartLayout is not empty
If just try to add a new tile without trying to change the grid size (i.e. using directly nexttile(2)), I get the error:
Error using nexttile
The tile does not fit in the layout.
Any suggestion how to manage this?