MATLAB Answers

calling invisible figures without toggling visibility

2 ビュー (過去 30 日間)
nathan blanc
nathan blanc 2021 年 3 月 2 日
コメント済み: nathan blanc 2021 年 3 月 2 日
i want to create a function that plots a bunch of invisible figures, and then returns figure handles, without actualy drawing the figures.
i tried doing:
f=figure(1)
f.Visible=off
figure(f)
or
f=figure(1)
f.Visible=off
figure(1)
but in both cases the figure visibility toggles back on when I call it
I cannot plot right away after setting visibility, because my function alternates between figures, plotting different curves on different figures
would be thankful for any assistance
Nathan

採用された回答

Mehmed Saad
Mehmed Saad 2021 年 3 月 2 日
編集済み: Mehmed Saad 2021 年 3 月 2 日
f= figure(1);
a = axes(f);
f.Visible = 'off';
x = 1:10;
y = 1:10;
plot(a,x,y)
Now when you want to see the picure, just call
f.Visible = 'on'
  1 件のコメント
nathan blanc
nathan blanc 2021 年 3 月 2 日
thanks mehmed, this fixed the issue

サインインしてコメントする。

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by