Current figure handle ignoring my open figure

2 ビュー (過去 30 日間)
SG
SG 2015 年 6 月 2 日
コメント済み: SG 2015 年 6 月 3 日
Hi,
I am using gcf
set(gcf, 'PaperPositionMode', 'manual');
to set figure properties so that I can print it as a .ps file.
However, upon executing, the statement opens a new figure and applies the changes to this one. Hence, my .ps file is empty. Any clue to what could be happening? The close all statement also does not work for my figure, I have to close it manually.
What's weird is that it was working the last time I worked on my project. When I opened it again today, it wasn't. I tried to debug it, but with no success. When I rewrote exactly what I had, it worked again. And now, it has stopped working.

採用された回答

Alfonso Nieto-Castanon
Alfonso Nieto-Castanon 2015 年 6 月 2 日
編集済み: Alfonso Nieto-Castanon 2015 年 6 月 2 日
most likely reason is that your figure has its HandleVisibility property set to 'off' or 'callback' (so its handle is partially hidden). Use findall to find hidden handles, and/or use close all hidden to close all figures (included ones with hidden handles), or close all hidden force if your figure has also altered its CloseRequestFcn property to avoid closure.
  1 件のコメント
SG
SG 2015 年 6 月 3 日
Thank you!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Object Identification についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by