How to change plot size?
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Karel Drenth
el 9 de En. de 2017
Comentada: Karel Drenth
el 9 de En. de 2017
Greetings,
I'm using a custom toolbox to generate a certain figure. The resulting image looks fine, except for the fact that the x-axis is hidden. Looking at the property editor I can verify it exits (stating 'R(m)'), has ticks and has the colour black. Unfortunately, it is just outside of the window (see image).
I tried increasing the window size, but to no avail, the image changes with the window size. Ideally I would like add some code that would reduce the area used for plotting (thus leaving some room to actually show the x-axis). Does anyone know if this is possible? Or if there is an earlier answered question that solves this?
Kind regards,
Karel
Image:

0 comentarios
Respuesta aceptada
Image Analyst
el 9 de En. de 2017
Use the position property
set(gcf, 'units', 'normalized');
set(gcf, 'Position', [0, 0.1, 1, 0.9]);
Más respuestas (2)
Steven Lord
el 9 de En. de 2017
Set the OuterPosition property of your axes. That page has a link to an example, "Axes Resize to Accommodate Titles and Labels", that may be of use to you.
0 comentarios
Ver también
Categorías
Más información sobre Printing and Saving en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!