Borrar filtros
Borrar filtros

Add an image to subplot

21 visualizaciones (últimos 30 días)
MattC
MattC el 16 de Mzo. de 2023
Respondida: Walter Roberson el 17 de Mzo. de 2023
Hi All, I have an image in the .jpg format and I would like to insert at (5,1,1) axes of my subplot. However, since there is only 1 column the image widens and blurs as well how do I fix the resolution or size of the image that is looks good?
I am open to changing the image to any format jpg,png,fig. Anything that makes the image readable and nice
  2 comentarios
Jan
Jan el 17 de Mzo. de 2023
If the axes created by subplot has more pixels than the image, you cannot avoid a blurring. Converting the image to other formats will not increase the number of existing pixels also.
Maybe a imresize(... 'lanczos') to the size of the axes reduces the artifacts a little bit.
MattC
MattC el 17 de Mzo. de 2023
Is there a way to add a picture above the subplots? I think that would work as well

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 17 de Mzo. de 2023
axis image
after you display the plot. This will set the aspect ratio to square so that the image does not get streched wide.

Más respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by