changeset 26548:58ad6355ece8

Enable axes ticks on top of bars of bar plots for Matlab compatiblity (bug #55481). * __barr__.m: If hold state is not on, then modify 2-D axes and set 'layer' property to 'top'.
author Rik <rik@octave.org>
date Tue, 15 Jan 2019 12:58:41 -0800
parents b52f6b0667eb
children 58e7a737c82b
files scripts/plot/draw/private/__bar__.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/draw/private/__bar__.m	Tue Jan 15 12:54:22 2019 -0800
+++ b/scripts/plot/draw/private/__bar__.m	Tue Jan 15 12:58:41 2019 -0800
@@ -220,7 +220,7 @@
         else
           set (hax, "clim", [0 1], "ylimmode", "manual");
         endif
-        set (hax, "box", "on");
+        set (hax, "box", "on", "layer", "top");
       endif
     unwind_protect_cleanup
       if (! isempty (oldfig))