Error using subplot, cannot set property to a deleted object
古いコメントを表示
Hi
I am wanting to plot two figures side by side.
I am wanting to plot the output of sliceViewer from a 3d object that I have and this is what I have attempted
figure(2);
subplot(1,2,1)
sliceViewer(G1,'Colormap',cmap);
subplot(1,2,2)
sliceViewer(G2,'Colormap',cmap);
Which gives me this error
Error using axes
Cannot set property to a deleted object
Error in subplot (line 602)
ax = axes('Units', 'normalized', 'Position', position, ...
Error in Deconvolve3d2 (line 94)
subplot(1,2,2)
I think it is something to do with how sliceViewer displays its outputs and it is somhow deleting the axes for the subplot
Thanks
3 件のコメント
Geoff Hayes
2020 年 2 月 14 日
Aidan - are you hoping to display the sliceViewer in the subplot? Is that why you call it after subplot? Can you confirm that when the sliceViewer is visible that the initial figure (with subplot) is deleted?
Aidan Shek
2020 年 2 月 14 日
Walter Roberson
2020 年 2 月 14 日
It does give the impression that sliceViewer is deleting the figure, or that the "current figure" is being left at something that is deleted.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Subplots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!