How to make a figure have the right aspect ratio?

117 visualizaciones (últimos 30 días)
JanPK
JanPK el 17 de Nov. de 2018
Comentada: Giuseppe Degan Di Dieco el 26 de Nov. de 2021
Hello everybody,
I have a weighted bivariate histogram like the one one the picture. I would like to print them more or less in the way depicted: one perspective view and one bird's eye perspective. However, the bins in both cases seem to be distorted. Normally, they should be squares because there ten bins in each direction. Is there a smart way how to force Matlab to display the figure undistorted?
I've already tried out to modify "DataAspectRatio", but it didn't work.
Thank you in advance for your ideas!
Matlab.jpg

Respuesta aceptada

Image Analyst
Image Analyst el 17 de Nov. de 2018
Editada: Image Analyst el 17 de Nov. de 2018
Look at the axis() function. After you make the axis/plot/graphs, try
axis equal
or
axis square
One of them should be what you want.
  2 comentarios
JanPK
JanPK el 17 de Nov. de 2018
axis square
was what I was looking for. Very good! Thank you for the quick response!
Giuseppe Degan Di Dieco
Giuseppe Degan Di Dieco el 26 de Nov. de 2021
Thank you guys for this thread, the command
axis square
worked well.
Best!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Annotations 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!

Translated by