Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Why does the set dimensions of my figure change upon saving?

1 visualización (últimos 30 días)
Ulrik William Nash
Ulrik William Nash el 2 de Ag. de 2018
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I begin my charting with the following code:
x0 = 10;
y0 = 10;
width = 556;
height = 588;
set(gcf,'units','pixels','position',[x0,y0,width,height],'Color','k','InvertHardcopy', 'off')
I create subplot(2,1,...)
And then I save using the following code:
saveas(gcf,'test.png')
If I save manually, there is no problem, but the code above changes the dimensions of my figure from the ones I start by setting. What is going on?

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Productos


Versión

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by