How to display a plot in two figures
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
I have a graph done using contourf and I want to realize another figure in the same subplot, identical to the first one, where to add some more details. Now, the script is already pretty stuffed so I don't want to re-run the contourf function, also because I have to do it more than one time, so my question is if it is possible to use the "informations" that contourf found in order to display them in two separate figures.
Thank you all!
3 件のコメント
Dennis
2019 年 5 月 7 日
I am not sure if i understand the question correctly. Do you want multiple figures in 1 subplot or 1 plot in multiple figures?
If you just want to display the contourf result in 2 subplots/figures you can copy them (might need to fix xlim/ylim).
A=peaks;
subplot(3,1,1);
[~,a]=contourf(A);
b=subplot(3,1,2);
copyobj(a,b)
xlim([1 49])
ylim([1 49])
回答 (1 件)
Sarah Crimi
2019 年 1 月 28 日
編集済み: Sarah Crimi
2019 年 1 月 28 日
Hi, have you looked at the contour slice command?
https://www.mathworks.com/help/matlab/ref/contourslice.html
参考
カテゴリ
Help Center および File Exchange で Contour Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!