Borrar filtros
Borrar filtros

how to set the figure width

13 visualizaciones (últimos 30 días)
Lizan
Lizan el 30 de Abr. de 2013
I am trying to create a figure of width and height of 3 inches from an existing saved figure. How can I do this?
I would like to save this figure as a .png of the same size. Can I save this as png of this (3x3 inches) size.
I have also noticed that some parts of the labels disappears when saving it to .png. Why is this so? How do I prevent this?
Many thanks,

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 30 de Abr. de 2013
Editada: Azzi Abdelmalek el 30 de Abr. de 2013
figure
set(gcf,'paperunits','inches')
set(gcf,'position',[0 0 3 3])
saveas(gcf,'fig1.png')
  3 comentarios
Azzi Abdelmalek
Azzi Abdelmalek el 30 de Abr. de 2013
What do you mean?
Azzi Abdelmalek
Azzi Abdelmalek el 30 de Abr. de 2013
Editada: Azzi Abdelmalek el 30 de Abr. de 2013
name='fig_choice.png'
saveas(gcf,name)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by