How to make a figure have the right aspect ratio?
조회 수: 122 (최근 30일)
이전 댓글 표시
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!

댓글 수: 0
채택된 답변
Image Analyst
2018년 11월 17일
편집: Image Analyst
2018년 11월 17일
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
Giuseppe Degan Di Dieco
2021년 11월 26일
Thank you guys for this thread, the command
axis square
worked well.
Best!
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!