How can I copy figure to UIAxes?
Mostrar comentarios más antiguos
I created figure which includes gramm graphs. I want to copy this figure to UIAxes component. I tried copyObj but I couldn't solve it.
6 comentarios
Mehmed Saad
el 6 de Jul. de 2020
I think you need the reverse of this?
Yaren Sever
el 6 de Jul. de 2020
Mehmed Saad
el 6 de Jul. de 2020
do you need all the figure features on UIAXES or just an image?
Yaren Sever
el 6 de Jul. de 2020
Walter Roberson
el 6 de Jul. de 2020
Editada: Walter Roberson
el 6 de Jul. de 2020
Yaren Sever
el 6 de Jul. de 2020
Respuestas (2)
Walter Roberson
el 6 de Jul. de 2020
Use imhandles() on the figure that is showing the gramm object.
You can now copyobj() the resulting handle(s) to a uiaxes that is part of a uifigure. You can also, if appropriate, set the Parent property of the image handles to be the uiaxes.
ufig = uifigure();
uax = axes('Parent', ufig);
tfig = figure();
tax = axes('Parent', tfig);
image('Parent', tax); %there is a default image.
imh = imhandles(tfig); %pretending we do not have the image handle easily available
imh.Parent = uax; %move the image from the traditional axes to the uiaxes.
Mehmed Saad
el 6 de Jul. de 2020
a = uiaxes;
b = getframe(gca);
imshow(b.cdata,'Parent',b)
There might be some quality issues
Categorías
Más información sobre Morphological Operations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!