Effacer les filtres
Effacer les filtres

ライブエディタのFi​gureの出力の背景​の透明化に関して

5 vues (au cours des 30 derniers jours)
Shuichi Nagamatsu
Shuichi Nagamatsu le 12 Juin 2024
Réponse apportée : Naga le 18 Juin 2024
set(gcf,"Color","none")
set(gca,"Color","none")
ライブエディタでplotしたFigureの背景を透明化するために上記のコードを実行すると
ライブエディタおよびFigureウインドウでの出力では背景が黒になってしまいます。
メタファイルでコピーした画像ファイルでは背景は透明化できていますが
出力ウインドウで白背景として表示するにはどうすればよいでしょうか?

Réponses (1)

Naga
Naga le 18 Juin 2024
Hi Shuichi,
I understand you want to set the figure's background color and the axes' background color to white. Here's an example of how to do it:
% Create a figure and plot data
figure;
plot(x, y); % Assuming x and y are predefined
% Set figure background to white
set(gcf, 'Color', 'white');
% Set axes background to white
set(gca, 'Color', 'white');
Hope this helps!

Catégories

En savoir plus sur ライティング、透明度、およびシェーディング dans Help Center et File Exchange

Produits


Version

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!