# HG changeset patch # User John W. Eaton # Date 1205291537 14400 # Node ID 1d7c23e288d7a2fa3f55aba611ebf1d1cd419ca2 # Parent 3ec654f16820b4dee7b92d0059c769440f9ee0fe __go_draw_axes__: use strcmpi for text properties; use get for hidden properties diff -r 3ec654f16820 -r 1d7c23e288d7 scripts/ChangeLog --- a/scripts/ChangeLog Tue Mar 11 21:32:20 2008 -0400 +++ b/scripts/ChangeLog Tue Mar 11 23:12:17 2008 -0400 @@ -1,3 +1,8 @@ +2008-03-11 John W. Eaton + + * plot/__go_draw_axes__.m: Use get to access hidden properties. + Use strcmpi when comparing string properties. + 2008-03-11 Kai Habel * plot/__go_draw_axes__.m: Plot surfaces in front of axes. diff -r 3ec654f16820 -r 1d7c23e288d7 scripts/plot/__go_draw_axes__.m --- a/scripts/plot/__go_draw_axes__.m Tue Mar 11 21:32:20 2008 -0400 +++ b/scripts/plot/__go_draw_axes__.m Tue Mar 11 23:12:17 2008 -0400 @@ -33,7 +33,7 @@ ## Set axis properties here? pos = [0, 0, 1, 1]; - if (strcmp (axis_obj.activepositionproperty, "outerposition")) + if (strcmpi (axis_obj.activepositionproperty, "outerposition")) ymirror = true; if (! isempty (axis_obj.outerposition)) pos = axis_obj.outerposition; @@ -49,9 +49,9 @@ endif endif - if (! strcmp (axis_obj.__colorbar__, "none")) + if (! strcmpi (get (h, "__colorbar__"), "none")) [pos, cbox_orient, cbox_size, cbox_origin, cbox_mirror] = ... - gnuplot_postion_colorbox (pos, axis_obj.__colorbar__); + gnuplot_postion_colorbox (pos, get (h, "__colorbar__")); endif fprintf (plot_stream, "set origin %.15g, %.15g;\n", pos(1), pos(2)); @@ -321,7 +321,7 @@ [view_cmd, view_fcn, view_zoom] = image_viewer (); use_gnuplot_for_images = (ischar (view_fcn) - && strcmp (view_fcn, "gnuplot_internal")); + && strcmpi (view_fcn, "gnuplot_internal")); ximg_data = {}; ximg_data_idx = 0; @@ -338,7 +338,7 @@ if (use_gnuplot_for_images) - if (strcmp (obj.cdatamapping, "direct")) + if (strcmpi (obj.cdatamapping, "direct")) cdatadirect = true; endif fputs (plot_stream, "set border front;\n"); @@ -509,7 +509,7 @@ if (! isempty (obj.cdata)) cdat = obj.cdata; - if (strcmp (obj.cdatamapping, "direct")) + if (strcmpi (obj.cdatamapping, "direct")) cdatadirect = true; endif else @@ -1185,7 +1185,7 @@ endif endif - if (strcmp (axis_obj.__colorbar__, "none")) + if (strcmpi (get (h, "__colorbar__"), "none")) fputs (plot_stream, "unset colorbox;\n"); else ## FIXME If cbox_mirror is true we want to invert the tic labels