diff libinterp/corefcn/gl-render.cc @ 22357:8f23b5b23235

Avoid grid overlaying axes box (bug #48842) * gl-render.cc (opengl_renderer::draw_axes): draw axes plane first and then grid, ticks and box.
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Mon, 22 Aug 2016 13:33:20 +0200
parents 2aac9ec7df29
children dc73bbd66363
line wrap: on
line diff
--- a/libinterp/corefcn/gl-render.cc	Mon Aug 22 09:55:07 2016 -0700
+++ b/libinterp/corefcn/gl-render.cc	Mon Aug 22 13:33:20 2016 +0200
@@ -1858,18 +1858,19 @@
     if (antialias == GL_TRUE)
       glDisable (GL_LINE_SMOOTH);
 
+    set_font (props);
+    set_interpreter (props.get_ticklabelinterpreter ());
+
     // draw axes object
     draw_axes_planes (props);
-    if (props.get_tag () != "legend" || props.get_box () != "off")
-      draw_axes_boxes (props);
-
-    set_font (props);
-    set_interpreter (props.get_ticklabelinterpreter ());
 
     draw_axes_x_grid (props);
     draw_axes_y_grid (props);
     draw_axes_z_grid (props);
 
+    if (props.get_tag () != "legend" || props.get_box () != "off")
+      draw_axes_boxes (props);
+
     set_linestyle ("-");
 
     set_clipbox (x_min, x_max, y_min, y_max, z_min, z_max);