# HG changeset patch # User Rik # Date 1404187898 25200 # Node ID 04a00ba54557cc901a7351a455c6992eb6a628fd # Parent 4cdab29731717ead2476d171363ceb9b6e927cd8 colorbar.m: Show ticks on colorbar. * colorbar.m: set axis "layer" to "top" to display tickmarks above colorbar image. diff -r 4cdab2973171 -r 04a00ba54557 scripts/plot/draw/colorbar.m --- a/scripts/plot/draw/colorbar.m Sun Jun 29 18:35:44 2014 -0700 +++ b/scripts/plot/draw/colorbar.m Mon Jun 30 21:11:38 2014 -0700 @@ -207,11 +207,11 @@ if (mirror) set (cax, "xtick", [], "xdir", "normal", "ydir", "normal", "ylim", cext, "ylimmode", "manual", - "yaxislocation", "right", args{:}); + "yaxislocation", "right", "layer", "top", args{:}); else set (cax, "xtick", [], "xdir", "normal", "ydir", "normal", "ylim", cext, "ylimmode", "manual", - "yaxislocation", "left", args{:}); + "yaxislocation", "left", "layer", "top", args{:}); endif else hi = image (cax, "xdata", [cmin, cmax], "ydata", [0,1], @@ -219,11 +219,11 @@ if (mirror) set (cax, "ytick", [], "xdir", "normal", "ydir", "normal", "xlim", cext, "xlimmode", "manual", - "xaxislocation", "top", args{:}); + "xaxislocation", "top", "layer", "top", args{:}); else set (cax, "ytick", [], "xdir", "normal", "ydir", "normal", "xlim", cext, "xlimmode", "manual", - "xaxislocation", "bottom", args{:}); + "xaxislocation", "bottom", "layer", "top", args{:}); endif endif