Does Imshowborder tight option in iptsetpref make margin depend on the image ratio?

2 ビュー (過去 30 日間)
Hyeonjin Kim
Hyeonjin Kim 2020 年 4 月 22 日
回答済み: Tarunbir Gambhir 2021 年 1 月 29 日
I have two images, the size of the first image is [300 50] and the second image is [100 4000].
% [height, width]
I run the same code to each images, but the second image in figure has a margin, the imshowborder is not tight.
The only difference is the ratio of each images (one is vertically long, and another is horizontally long)
Since the second image is larger than the first one, it isn't seem like size problem.
I want two images without any margin. Is any options for me?

回答 (1 件)

Tarunbir Gambhir
Tarunbir Gambhir 2021 年 1 月 29 日
When setting the 'ImshowBorder' option to 'tight', there can be cases that the border is still present. This happens if the image is very small, or if there are other objects besides the image and its axes in the figure.
I suggest you refer the MathWorks documentation on iptsetpref for this information.

カテゴリ

Help Center および File ExchangeBiomedical Imaging についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by