increasing plotting area for subplot figures

19 visualizzazioni (ultimi 30 giorni)
RL88
RL88 il 11 Mag 2017
Risposto: Maitreyee Mordekar il 16 Mag 2017
To decrease the margins of a figure it is possible to use the command
set(gca,'position',[.05,.05,.9,.9]);
I would like to know how to do it with a multiplot figure. Using the method above it will maximise the plot area of 1 subplot (which will obfuscate the other sub plots)
I would like to reduce the wide white margins on the sides of the attached example. (fig and png attached)
Thanks in advance for your help.
  1 Commento
Adam
Adam il 11 Mag 2017
Create and position individual axes yourself instead e.g.
hAxes(1) = axes( 'Position', [0.05 0.05 0.27 0.9] );
hAxes(2) = axes( 'Position', [0.05 0.37 0.27 0.9] );
hAxes(3) = axes( 'Position', [0.05 0.69 0.27 0.9] );

Accedi per commentare.

Risposte (1)

Maitreyee Mordekar
Maitreyee Mordekar il 16 Mag 2017
As suggested by Adam, you could define the individual axis by yourself from the MATLAB Command Window or you could also use plotools function to interactively customize the graph.
For using this, you will have to keep the 'test figure.fig' figure open and then just run the following command on the MATLAB Command Window:
>> plotools
This will let you customize graph based on your requirement using the GUI. Hope this helps!

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Prodotti

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by