Graphs behaviour after tiledlayout, stackedplot or subplot functions

Hi,
I wrote some live script to analyse my data. Every time I use either tiledlayout, stackedplot or subplot functions for few graphs, all the subsequent graphs will then have the same layout, even though I haven't ask for it.... It's really annoying as I often need to restart my workspace, which is really time consuming. I’ve attached 2 screenshots with one where I used tiledlayout and the next graph (heatmap) where I didn’t used it but got it anyway…
Thanks in advance!

4 件のコメント

Adam Danz
Adam Danz 2020 年 11 月 30 日
Please attach the mlx file and anything else needed to run it.
Benoit Roux
Benoit Roux 2020 年 11 月 30 日
See atached the mlx file. I get raw data from this softaware: https://github.com/klasma/BaxterAlgorithms that run in matlab and I only use 'LoadCells' and 'AreCells' functions from it for the analysis in the "Data Extraction" pararaph. I hope it's enough... Thanks
Adam Danz
Adam Danz 2020 年 11 月 30 日
Could you provide links to the tif files (or just attach them) and anything else needed to run the file?
Benoit Roux
Benoit Roux 2020 年 11 月 30 日
I can't give you that as they are way too big... Instead I've made a simplier version of my mlx and I can give you the generated data from above. To be honest I feel it's more a problem related to my installed software, rather than the code itself... Which btw happen both on linux and windows installed verison...

サインインしてコメントする。

 採用された回答

Adam Danz
Adam Danz 2020 年 11 月 30 日

0 投票

When you call heatmap in the line below you're still using the 2nd axes in the tiledlayout created above. That's why the heatmap is added to the tiledlayout.
h=heatmap(hGR2',"Colormap",jet(14),"ColorLimits",[0.6,1.3],'XLabel','Time', ...
If you want the heatmap on an independent figure, create the figure before calling heatmap,
figure()
h=heatmap(hGR2',"Colormap",jet(14),"ColorLimits",[0.6,1.3],'XLabel','Time', ...

1 件のコメント

Benoit Roux
Benoit Roux 2020 年 11 月 30 日
Thanks a lot! I didn't know that... and so simple

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

リリース

R2020b

質問済み:

2020 年 11 月 30 日

コメント済み:

2020 年 11 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by