diff scripts/plot/xlabel.m @ 11598:62b7ea59a6ff

fixing color mismatch between axis and axis label
author Konstantinos Poulios <logari81@googlemail.com>
date Fri, 21 Jan 2011 20:22:42 +0100
parents fd0a3ac60b0e
children 79b9a7669bb8
line wrap: on
line diff
--- a/scripts/plot/xlabel.m
+++ b/scripts/plot/xlabel.m
@@ -42,7 +42,8 @@
   oldh = gca ();
   unwind_protect
     axes (h);
-    tmp = __axis_label__ ("xlabel", varargin{:});
+    tmp = __axis_label__ ("xlabel", varargin{:},
+                          "color", get (h, "xcolor"));
   unwind_protect_cleanup
     axes (oldh);
   end_unwind_protect