how to print figure in jpg without white margin

4 visualizaciones (últimos 30 días)
jason lee
jason lee el 16 de Sept. de 2020
Comentada: jason lee el 16 de Sept. de 2020
x = 0:pi/5:2*pi;
y = sin(x).*exp(-x);
figure('Visible', 'off', 'PaperUnits','centimeters', 'PaperPosition', [0 0 32 8])
plot(x,y,'--k','LineWidth',1)
xlabel('Acc /g')
ylabel('T /s')
ax = gca;
ax.FontSize = 16;
print('figure01','-djpeg', '-r0')
the script give me a figure like this
however, i don't want the white margins in left and right of the printed figures
what should i do?

Respuesta aceptada

KSSV
KSSV el 16 de Sept. de 2020
  1 comentario
jason lee
jason lee el 16 de Sept. de 2020
thank you bro !
it is really a very nice tigure export tool.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by