MATLAB Title Name Disabled

When I use the following code to display the image, it displays fine, but the shape window is cropped next to the shape so that the title is turned off. This definitely exists because if I manually make the window taller then the title will become visible.

I think this is my mistake, because some time ago I was busy with default settings for how MATLAB fits the axis window. Now I just can't remember the settings that changed this. Can anyone help? Thanks.

the code:

figure(); imshow(my_img); title('A Sample Image'); 
+6
source share
7 answers

OK, I found it. In R2010a it can be fixed by going to the menu "File โ†’ Settings โ†’ Image Processing" and under the IMSHOW display, setting the "Border Style" to "Loose". I donโ€™t know why I didnโ€™t notice this before. Thanks to all.

+9
source

Try it: in the picture window, find the options / preferences in the menu, and then try to restore the original settings

Later I will improve my answer (I do not have Matlab here ...).

0
source

From Matlab (2008) help (search for automatic resizing of axes):

"When you add axis labels and a title, TightInset changes to accommodate additional text [...] Using OuterPosition as ActivePositionProperty: when resizing a picture, MATLAB supports the area defined by TightInset + Position, so the text is not cropped."

i.e. set(gca, 'ActivePositionProperty', 'OuterPosition'); fixed it

0
source

I fixed this problem at work by adding ellipses to the end of my titles. 3 or 4 dots at the end of your name, and the dots will be cut off, but the words remain! It should be noted that this has never happened to me in the past (and only on my Macbook Pro OSX machine), so this could be a setup or compatibility issue.

0
source

I found a solution for my case (3D graph). The problem was with the axis vis3d . Therefore, please do NOT use this:

 axis vis3d 
0
source

Similar to Blairg23; adding spaces to the end of the name works.

0
source

I changed axis.position to a smaller [0,0,0.7,0.7] and was able to see the title

0
source

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


All Articles