comparison libinterp/corefcn/gl-render.cc @ 18704:ea22cf3e370b

Don't plot grid lines directly over axis box lines. * gl-render.cc (opengl_renderer::render_grid): Only plot grid lines which are within the axes box rather than within or on the axes box boundary.
author Rik <rik@octave.org>
date Tue, 29 Apr 2014 14:37:45 -0700
parents 8969bd721448
children 60df2fd04293
comparison
equal deleted inserted replaced
18703:abd8d8c686c9 18704:ea22cf3e370b
649 set_linestyle (gridstyle, true); 649 set_linestyle (gridstyle, true);
650 glBegin (GL_LINES); 650 glBegin (GL_LINES);
651 for (int i = 0; i < ticks.numel (); i++) 651 for (int i = 0; i < ticks.numel (); i++)
652 { 652 {
653 double val = ticks(i); 653 double val = ticks(i);
654 if (lim1 <= val && val <= lim2) 654 if (lim1 < val && val < lim2)
655 { 655 {
656 if (xyz == 0) // X 656 if (xyz == 0) // X
657 { 657 {
658 glVertex3d (val, p1N, p2); 658 glVertex3d (val, p1N, p2);
659 glVertex3d (val, p1, p2); 659 glVertex3d (val, p1, p2);