Inserting view into subplot
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I wish to insert a view image into a subplot, as below.
I thought I could do it by passing axis object, but it fails.
How can I do this? thank you
figure;
A = rand(10,10);
subplot(131);
subplot(132);
subplot(133);
%
subplot(131);
imagesc(A);
subplot(132);
view(biograph(sparse(A))); %this opens in a new figure. Not what I want.
0 Kommentare
Antworten (1)
Walter Roberson
am 11 Mär. 2013
The documentation says specifically that it opens a new figure.
You might be able to find another method by looking at the source (I do not have that toolbox), but otherwise about the only approach would be to let it open a figure and then copyobj() the content of the axes it produces into the subplot and then delete the figure. I would expect that to cause subtle problems, but there might be ways to overcome those problems if you were to examine the source.
2 Kommentare
Walter Roberson
am 11 Mär. 2013
There is a specific view() function for biograph objects.
Use
which -all view
to see location of the other view.m file.
Siehe auch
Kategorien
Mehr zu Subplots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!