octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #57288] "test legend" fails for graphics toolk


From: Rik
Subject: [Octave-bug-tracker] [bug #57288] "test legend" fails for graphics toolkit gnuplot
Date: Thu, 21 Nov 2019 14:57:01 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Update of bug #57288 (project octave):

                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #1:

This shouldn't be too hard to fix, although it will require someone who is
motivated to continue work on the gnuplot toolkit.  A new legend.m function
has completely replaced the old function, except for the gnuplot toolkit which
uses the old code now stored at
scripts/plot/appearance/private/__gnuplot_legend__.m.

I get two test failures, and a third which is a known bug.  The two failures
are


***** test
 hf = figure ("visible", "off");
 unwind_protect
   axes ();
   hplot = plot (rand (3));
   try
     legend (hplot, struct);
   catch
     [~, id] = lasterr ();
     assert (id, "Octave:invalid-fun-call");
   end_try_catch
 unwind_protect_cleanup
   close (hf);
 end_unwind_protect
!!!!! test failed
ASSERT errors for:  assert (id,"Octave:invalid-fun-call")

  Location  |  Observed  |  Expected  |  Reason
     []                   Octave:invalid-fun-call   Strings don't match
***** test
 hf = figure ("visible", "off");
 unwind_protect
   axes ();
   hplot = plot (rand (3));
   try
     legend ("a", "b", "c", hplot);
   catch
     [~, id] = lasterr ();
     assert (id, "Octave:invalid-fun-call");
   end_try_catch
 unwind_protect_cleanup
   close (hf);
 end_unwind_protect
!!!!! test failed
ASSERT errors for:  assert (id,"Octave:invalid-fun-call")




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57288>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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