# HG changeset patch # User Konstantinos Poulios # Date 1295637762 -3600 # Node ID 62b7ea59a6ff354d2841a83ba170773f1b70357a # Parent a066673566da7c60fd80a30fe38263ba9ebaea57 fixing color mismatch between axis and axis label diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2011-01-21 Konstantinos Poulios + + * plot/xlabel.m, plot/ylabel.m, plot/zlabel.m: Setting axis label + color from axis color. + 2011-01-20 Jordi GutiƩrrez Hermoso * image/imshow.m: Fix handling of clim and display_range so that diff --git a/scripts/plot/xlabel.m b/scripts/plot/xlabel.m --- 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 diff --git a/scripts/plot/ylabel.m b/scripts/plot/ylabel.m --- a/scripts/plot/ylabel.m +++ b/scripts/plot/ylabel.m @@ -36,7 +36,8 @@ oldh = gca (); unwind_protect axes (h); - tmp = __axis_label__ ("ylabel", varargin{:}); + tmp = __axis_label__ ("ylabel", varargin{:}, + "color", get (h, "ycolor")); unwind_protect_cleanup axes (oldh); end_unwind_protect diff --git a/scripts/plot/zlabel.m b/scripts/plot/zlabel.m --- a/scripts/plot/zlabel.m +++ b/scripts/plot/zlabel.m @@ -36,7 +36,8 @@ oldh = gca (); unwind_protect axes (h); - tmp = __axis_label__ ("zlabel", varargin{:}); + tmp = __axis_label__ ("zlabel", varargin{:}, + "color", get (h, "zcolor")); unwind_protect_cleanup axes (oldh); end_unwind_protect diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2011-01-21 Konstantinos Poulios + + * src/graphics.cc (axes::properties::set_xlabel, + axes::properties::set_ylabel, axes::properties::set_zlabel): + Setting axis label color from axis color. + 2011-01-20 Rik * src/file-io.cc, src/variables.cc: Prevent doubled quotes around @table diff --git a/src/graphics.cc b/src/graphics.cc --- a/src/graphics.cc +++ b/src/graphics.cc @@ -3299,6 +3299,7 @@ xset (xlabel.handle_value (), "horizontalalignmentmode", "auto"); xset (xlabel.handle_value (), "verticalalignmentmode", "auto"); xset (xlabel.handle_value (), "clipping", "off"); + xset (xlabel.handle_value (), "color", get_xcolor ()); } void @@ -3310,6 +3311,7 @@ xset (ylabel.handle_value (), "horizontalalignmentmode", "auto"); xset (ylabel.handle_value (), "verticalalignmentmode", "auto"); xset (ylabel.handle_value (), "clipping", "off"); + xset (ylabel.handle_value (), "color", get_ycolor ()); } void @@ -3321,6 +3323,7 @@ xset (zlabel.handle_value (), "horizontalalignmentmode", "auto"); xset (zlabel.handle_value (), "verticalalignmentmode", "auto"); xset (zlabel.handle_value (), "clipping", "off"); + xset (zlabel.handle_value (), "color", get_zcolor ()); } void