The tight border of the current shape

I know

imshow ('myimage.png', 'border', 'tight');

will give a tight border around the image. But what if I already have an image? Is there a way to make it a tight border?

+3
source share
2 answers

(1) Select the axis of the figure on which the image is displayed by clicking on the image.

(2) Enter in the command window

rigid axis

Assuming that this is what you want to do ... From your question it was not clear what exactly you wanted to do.

+5
source
imshow('coins.png')
set(gca, 'Units', 'normalized', 'Position', [0 0 1 1])
+8
source

Source: https://habr.com/ru/post/1777698/


All Articles