Multiline title not fitting in figure window
12 views (last 30 days)
Show older comments
I'm having trouble getting a multiline title to fit into the figure window. For example how can I ensure that all of the lines of the following title are visible?
img=imread('cameraman.tif');
imshow(img)
title({'Line 1','Line 2','Line 3'})
2 Comments
Jan
on 19 Mar 2016
It depends. Do you want to move the axes object down? Do you want to decrease the scaling?
Accepted Answer
Jan
on 19 Mar 2016
Can you use image instead of imshow?
AxesH = axes('NextPlot', 'add', 'Visible', 'off');
title({'Line 1','Line 2','Line 3'}, 'Visible', 'on')
image(rand(100, 100, 3), 'Parent', AxesH);
axis(AxesH, 'image')
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!