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

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

[Octave-bug-tracker] [bug #37645] "set" function not properly working wi


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input.
Date: Mon, 19 Nov 2012 13:23:17 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/536.26.17 (KHTML, like Gecko) Version/6.0.2 Safari/536.26.17

Update of bug #37645 (project octave):

                  Status:         Patch Submitted => Fixed                  

    _______________________________________________________

Follow-up Comment #7:

Ok.  I'm changing the status to fixed.  Before closing, should a test be
added?  Maybe a note to reference which changeset fixed this?  The latter is
important so that we can include the test in the proper source file.


%!test
%! x = 0:0.1:10;
%! figure (1, "visible", "off");
%! clf ()
%! h(1) = plot (x, sin (x));
%! prop_in.position = get (gca (), "position");
%! prop_in.outerposition = get (gca (), "outerposition");
%! prop_in.activepositionproperty = get (gca (),"activepositionproperty");
%! ax(1) = gca ();
%! ax(2) = axes ();
%! h(2) = plot (x, cos (x), "r");
%! legend (ax(1), h, {"sin(x)", "cos(x)"}, "location", "northeast")
%! set (ax(2), prop_in);
%! set (ax(2), "color", "none")
%! prop_out.position = get (ax(2), "position");
%! prop_out.outerposition = get (ax(2), "outerposition");
%! prop_out.activepositionproperty = get (ax(2), "activepositionproperty");
%! assert (prop_out, prop_in)



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37645>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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