Mercurial > octave-nkf
changeset 18916:04a00ba54557
colorbar.m: Show ticks on colorbar.
* colorbar.m: set axis "layer" to "top" to display tickmarks above colorbar
image.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 30 Jun 2014 21:11:38 -0700 |
parents | 4cdab2973171 |
children | a8cacb2e98da |
files | scripts/plot/draw/colorbar.m |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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