octave-maintainers
[Top][All Lists]
Advanced

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

hgsave weirdness


From: Dmitri A. Sergatskov
Subject: hgsave weirdness
Date: Sun, 22 Sep 2019 23:27:25 -0500

$ cat t2.m
h1=figure();
plot(randn(10));
fname = "t2.ofig"
hgsave(h1, fname)
h2=hgload(fname)
h1_l = get(h1);
h2_l = get(h2);
assert(h1, h2)


$ ls -l t2.ofig
ls: cannot access 't2.ofig': No such file or directory

octave:1> t2
fname = t2.ofig
error: hgload: unable to locate file t2.ofig
error: called from
    hgload at line 60 column 7
    t2 at line 5 column 3
octave:2> t2
fname = t2.ofig
h2 =  3
error: ASSERT errors for:  assert (h1,h2)

  Location  |  Observed  |  Expected  |  Reason
     ()           2            3         Abs err 1 exceeds tol 0 by 1
octave:3>

Adding pause(10) after hgsave() does not seem to change anything, so
it is not a timing issue.

What is going on here?

Dmitri.
--



reply via email to

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