[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54924] savefig should accept a vector of figu
From: |
Guillaume |
Subject: |
[Octave-bug-tracker] [bug #54924] savefig should accept a vector of figure handles for Matlab compatibility |
Date: |
Thu, 1 Nov 2018 06:44:52 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 |
Follow-up Comment #6, bug #54924 (project octave):
Thanks Rik - you could have pushed the patch under your name as you did put a
lot more work into this than I did!
Concerning the "compact" argument, your changes makes sense. I wonder if we
could accept other format types (-v6, -v7, -hdf5) given they would work with
hgsave.m.
https://hg.savannah.gnu.org/hgweb/octave/file/940aabcd6fdb/scripts/plot/util/savefig.m#l74
e.g.:
if (nargin == 3)
fmt = varargin{3};
if (strcmpi (fmt, "compact"))
fmt = "-zip";
endif
endif
with the validation taking place in save.m.
Checking with matlab when the "compact" argument is used, the fig file
contains a variable named hgS_080000 so we should also change hgload.m to
reflect this:
https://hg.savannah.gnu.org/hgweb/octave/file/940aabcd6fdb/scripts/plot/util/hgload.m#l65
hgs = {"s_oct40", "hgS_050200", "hgS_070000", "hgS_080000"};
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?54924>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54924] savefig should accept a vector of figure handles for Matlab compatibility,
Guillaume <=