Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How could I save a figure without drawing it on the screen and it could be opened nomally?

0 views
Skip to first unread message

Tsai

unread,
Nov 24, 2005, 8:37:09 AM11/24/05
to
Using figure('Visible','off') one could save a figure without drawing
it on the screen.

But when I want to load the figure, it will still be invisible.

I have to use openfig('test.fig','visible') to display the figure.

Is there any way to save a figure without drawing it on the screen
AND this figure could be opened as normal figure without setting the
Visible on?

Jim Lawton

unread,
Nov 24, 2005, 8:43:07 AM11/24/05
to

Create the figure with visible 'on' on a part of the screen that is not
visible. Of course, you would still have to reposition the figure before
saving or when re-opening.

Or create it behind another figure and save.

Just random thoughts.

Jim

Heinrich Acker

unread,
Nov 24, 2005, 11:37:11 AM11/24/05
to
A figure file is a file of type 'mat' with the extension 'fig'. You
can load it into workspace with

load -mat <figurefilename>.fig

You see all the handle graphic elements of the figure stored in a
structure. The hierarchy of the structure is like in the property
editor. I did not try, but probably you can look for 'Invisible' in
the structure, change it accordingly (or delete it, since 'Visible'
is default), and store the whole thing again.

Heinrich

Tsai

unread,
Nov 24, 2005, 1:41:31 PM11/24/05
to
Thanks a lot, Heinrich.

It works!

How wonderful that one can correct the properties of
fig-files by using load -mat <figurefilename>.fig !

Yes, there is a filed named 'Visible' in the structure which has the
value 'off'.

Thanks Jim also, creating a figure is refused for my work.

0 new messages