Controlling Subplot sizes while using axis image
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi, I'm trying to produce a nice figure that is being mean to me...
Basically, I want a subplot with an image on the left and a plot on the right that is of the same height as the image and a controllable width. I'm using axis image since I want the pixels of my image not to be stretched. Here is my code to subplot both at the moment:
subplot(1,2,1)
imagesc(Image);
caxis([5 9]); axis image; colormap(gray);
subplot(1,2,2)
h2 = plot(x,y);
axis([-inf, inf, 0.6, 2.1])
The problem is when I do that, the plot is a lot bigger than the image while I'd like the opposite.
Thanks for the help.
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Subplots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!