Five plots arranged like on dice?
Afficher commentaires plus anciens
How can I arrange five plots in one figure so the plots would be on same positions like points on a dice? I dont want subplot (3,3,...) because of too much empty space. Thanks
2 commentaires
Azzi Abdelmalek
le 21 Août 2013
Hmmmm....that now looks completely_different than when I carefully formatted it in the preview pane... :( Including munging on the values. I've no klew how that happend--I'll see if can clean it up.
ADDENDUM--ok the automagic wordwrap struck again -- the formatting all went away simply because I didn't turn the arrangement "figure" into a code block--yet another reason that TMW really, really needs to make that the default instead--having to physically format code in a coding forum just makes no sense at all...one of the reasons I'm scaling back drastically--this sort of what should be needless fixup just takes too much time/effort. :(
ADDENDUM 2: I moved it to Answer since did expand into working code and deleted the comment.
Réponse acceptée
Plus de réponses (1)
the cyclist
le 21 Août 2013
Modifié(e) : the cyclist
le 21 Août 2013
Here is a simple, general example of how to position two sets of axes in one figure.
figure
ax1 = axes;
ax2 = axes;
set(ax1,'Position',[0.5 0.5 0.35 0.25])
set(ax2,'Position',[0.1 0.1 0.25 0.35])
h1 = plot(ax1,rand(3,1),rand(3,1),'.');
h2 = plot(ax2,rand(3,1));
You can also adjust the size of the figure window itself with
set(gcf,'Position',<coordinates here>)
Enjoy.
Catégories
En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!