diff src/gl-render.cc @ 12443:24b38afd6a45

fix plotyy bugs #31800, #32211
author Konstantinos Poulios <logari81@googlemail.com>
date Sun, 13 Feb 2011 21:37:18 +0100
parents 63dc132a1000
children f899f451fe76
line wrap: on
line diff
--- a/src/gl-render.cc
+++ b/src/gl-render.cc
@@ -849,6 +849,8 @@
   double ypTickN = props.get_ypTickN ();
   double zpTickN = props.get_zpTickN ();
 
+  bool plotyy = (props.get_tag () == "plotyy");
+
   // Axes box
 
   set_linestyle ("-", true);
@@ -878,7 +880,7 @@
       glVertex3d (xpTick, yPlaneN, zpTick);
       glVertex3d (xpTick, yPlane, zpTick);
 
-      if (props.is_box ())
+      if (props.is_box () && ! plotyy)
         {
           glVertex3d (xpTickN, yPlaneN, zpTick);
           glVertex3d (xpTickN, yPlane, zpTick);
@@ -2398,9 +2400,6 @@
   if (props.get_string ().empty ())
     return;
 
-  set_font (props);
-  set_color (props.get_color_rgb ());
-
   const Matrix pos = xform.scale (props.get_data_position ());
   const Matrix bbox = props.get_extent_matrix ();