How to show a image in axes without change its size?

6 ビュー (過去 30 日間)
Daniel Fonsêca
Daniel Fonsêca 2019 年 3 月 28 日
コメント済み: Daniel Fonsêca 2019 年 4 月 1 日
Hello,
I'm trying to show a image in axes using the imshow. But, when i did it, the axes upload and the size change. I want to know how i can show a image without resize the axes. I want the image be showed in the center of axes.

採用された回答

Image Analyst
Image Analyst 2019 年 3 月 28 日
Try the truesize() function. Also see my zoom demo, attached.
  2 件のコメント
Daniel Fonsêca
Daniel Fonsêca 2019 年 4 月 1 日
When I useyour function zoom, the figure becomes so big. How can i hold it in its original size?
Daniel Fonsêca
Daniel Fonsêca 2019 年 4 月 1 日
I got the answer. I used the axes before the imshow. Is there a scrollpanel to statement too?

サインインしてコメントする。

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2019 年 3 月 28 日
image() or imagesc() instead of using imshow() .
If you are using a grayscale or pseudocolor image you might need to call colormap() after image()
  1 件のコメント
Daniel Fonsêca
Daniel Fonsêca 2019 年 4 月 1 日
Thanks by the attention

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by