help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving graphic objects to file?


From: Søren Hauberg
Subject: Re: Saving graphic objects to file?
Date: Tue, 13 Apr 2010 09:11:50 -0700

tir, 13 04 2010 kl. 11:52 -0400, skrev Ben Abbott:
> On Tuesday, April 13, 2010, at 09:09AM, "Tribo Laboy" <address@hidden> wrote:
> >Is it possible to save the graphics objects to file? say like this:
> >
> >savefig(gcf, 'MyFigure.octfig')
> >
> >so that they are readable and editable later?
> >
> >Thanks.
> >
> 
> This capability does not yet exist in Octave.
> 
> However, the handle graphics properties do contain sufficient
> information to save and restore a figure. So all that is needed is for
> someone to take the effort to write the code to save the information,
> and then to restore it.

Attached is some simple code simply stores the values of a handle in a
structure. The reverse operation doesn't quite work, though. I think the
problem is that too much information is stored, so one would need to
prune the list of properties that are stored.

Søren

Attachment: handle2struct.m
Description: Text Data

Attachment: struct2handle.m
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]