Graphs behaviour after tiledlayout, stackedplot or subplot functions
조회 수: 3 (최근 30일)
이전 댓글 표시
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
2020년 11월 30일
Could you provide links to the tif files (or just attach them) and anything else needed to run the file?
채택된 답변
Adam Danz
2020년 11월 30일
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', ...
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Colormaps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!