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

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

[Octave-bug-tracker] [bug #37913] subplot with copyobj inconsistent


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #37913] subplot with copyobj inconsistent
Date: Sat, 15 Dec 2012 16:11:05 +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

Follow-up Comment #5, bug #37913 (project octave):

Pantxo, my understanding is that the listeners are only triggered if the value
of the property is changed.  Thus, the command below should not trigger a
listener for the "position" property.


set (gca (), "position", get (gca (), "position"))


If it does, then something unintended is happening.

For the gnuplot graphics toolkit, the tick values of 0.6 are off by 0.5 eps
().  Looks like there is a small numeric problem somewhere.

I added the demo below to your hdlcmp.m to see the size of the difference in
the property values.


%!demo
%! close all
%! ax1 = subplot (1, 1, 1);
%! ax2 = copyobj (ax1, gcf);
%! valdiff = hdlcmp (ax1, ax2).valdiff;
%! fields = fieldnames (valdiff{1,1});
%! for f = 1:numel(fields)
%!   dp = valdiff{1,1}.(fields{f}) - valdiff{1,2}.(fields{f});
%!   fprintf ("%s difference norm = %s\n", fields{f}, num2str (norm (dp)))
%! endfor


Regarding the fltk graphics toolkit, the problem may be independent of
copyobj().  Perhaps Konstas will have some insight into this.  I've cc'd him.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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