Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting window/picture title

I have:

img = imread('pic.jpg','jpg');
r = img(:,:,1);
g = img(:,:,2);
b = img(:,:,3);

figure, imshow(r);
figure, imshow(g);
figure, imshow(b);

How to set title over each picture?

like image 446
Miko Kronn Avatar asked Oct 21 '10 19:10

Miko Kronn


People also ask

How do I change the height of the window title bar?

You can open the software from the extracted folder. Scroll down to and select Window Title Bars to open the options shown in the snapshot below. That includes a Window title bar height bar that you can drag left and right.

Where is the title bar in Windows 10?

The title bar is at the top of every window in Windows 10. This includes three buttons at the top right corner of the window and a title for each open window. There are a number of ways you can customize the title bar with a few extra software packages and the options included in Windows 10.

How do I customize the title bar of my App?

You can modify the default title bar that Windows provides so that it blends with the rest of your UI, or extend your app canvas into the title bar area and provide your own title bar content. Title bar customization APIs are currently supported on Windows 11 only.

How do I add color to the default title bar?

To add color to the default title bar or to change the window icon that comes with a WinUI 3 window, you will need to use the Windows App SDK AppWindow APIs or opt to fully customize your titlebar. By default, the title bar shows the app's display name as the window title. The display name is set in the Package.appxmanifest file.


1 Answers

You want to change the Name-property of the figure window.

img = imread('pic.jpg','jpg');
r = img(:,:,1);
g = img(:,:,2);
b = img(:,:,3);

figure('Name','this is the red channel'), imshow(r);
figure('Name','this is the green channel','NumberTitle','off'), imshow(g);
title(gca,'you can also place a title like this')    

fh = figure; imshow(b);
set(fh,'Name','this is the blue channel')

Also, if you call imshow(g,[]), it will auto-scale the image to min/max.

like image 90
Jonas Avatar answered Oct 06 '22 01:10

Jonas