diff scripts/plot/colorbar.m @ 10920:91ff0d7ee94b

Don't pass figure handle to __calc_dimensions__.
author Ben Abbott <bpabbott@mac.com>
date Fri, 27 Aug 2010 21:06:04 -0400
parents 40cf7cc4ea62
children a72d53df4fa6
line wrap: on
line diff
--- a/scripts/plot/colorbar.m
+++ b/scripts/plot/colorbar.m
@@ -107,6 +107,7 @@
 
   if (! deleting)
     obj = get (ax);
+    obj.__my_handle__ = ax;
     position = obj.position;
     clen = rows (get (get (ax, "parent"), "colormap"));
     cext = get (ax, "clim");
@@ -220,6 +221,7 @@
       (isempty (gcbf()) || strcmp (get (gcbf(), "beingdeleted"),"off")))
     loc = get (cax, "location");
     obj = get (h);
+    obj.__my_handle__ = h;
     obj.position = orig_props.position;
     obj.outerposition = orig_props.outerposition;
     [pos, cpos, vertical, mirror] =  ...