changeset 21958:da9127ba1e0a

Use 1/3rd MarkerSize for '.' marker for Matlab compatibility (bug #48208). * gl-render.cc (make_marker_list): Divide sz by 3 when using '.' marker.
author Rik <rik@octave.org>
date Mon, 20 Jun 2016 11:56:17 -0700
parents 6be06f0c7463
children 627f582edbe3
files libinterp/corefcn/gl-render.cc
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/gl-render.cc	Mon Jun 20 02:21:10 2016 -0500
+++ b/libinterp/corefcn/gl-render.cc	Mon Jun 20 11:56:17 2016 -0700
@@ -3765,11 +3765,12 @@
       break;
     case '.':
       {
+        // The dot marker is special and is drawn at 1/3rd the specified size
         double ang_step = M_PI / 5;
 
         glBegin (GL_POLYGON);
         for (double ang = 0; ang < (2*M_PI); ang += ang_step)
-          glVertex2d (sz*cos (ang)/3, sz*sin (ang)/3);
+          glVertex2d (sz*cos (ang)/6, sz*sin (ang)/6);
         glEnd ();
       }
       break;