更改figure的標題欄顯示

2021-08-23 15:12:57 字數 676 閱讀 2388

figure產生的視窗標題欄通常顯示為「figure1、figure2、。。。」

為了讓其顯示自己的標題,可以如下設定:

% figure(1);

%首先得到圖形視窗物件的控制代碼,然後對該物件進行設定.

% clf,clear,clc;

o2=imread('lena.bmp');

o=imread('ww.bmp');

figure(1);

clf;

imshow(o);

title('111');

f1=figure(1);

set(figure(1),'numbertitle','off','name','1') ; %n1為你要的名稱

% o=imread('lena.bmp');

% figure;

% f1=figure;

% imshow(o);

% title('111');

% set(f1,'numbertitle','off','name','lili') %n1為你要的名稱

figure(2);

imshow(o2);

f1=figure(2);

set(f1,'numbertitle','off','name','2'); %n1為你要的名稱

title('22222222')

Android Activity 標題欄顯示返回鍵

最簡單的方法 androidmanifest.xml 檔案的 activity 增加 parentactivityname,但是這好像只適合固定的父activity。使用後發現返回自帶動作。但是標題欄加了選單後,動作消失,需要手動設定一下。override public boolean oncrea...

win10 更改標題欄顏色

1.進入c windows resources themes,找到aero資料夾,建立該資料夾副本 2.將該副本資料夾重新命名 x 3.副本資料夾 中找到aero.msstyles檔案,重新命名為 x msstyles 4.進入副本資料夾 中的zh cn en us資料夾,把aero.msstyle...

mfc 標題欄 標題字型 居中顯示

在標頭檔案中放下面的函式 view plaincopy to clipboardprint?afx msg void onncpaint afx msg bool onncactivate bool bactive afx msg void onactivate uint nstate,cwnd p...