octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #35438] set ticklength not functioning


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #35438] set ticklength not functioning
Date: Thu, 23 Feb 2012 20:13:23 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11

Follow-up Comment #4, bug #35438 (project octave):

My lack of c++ experience is getting the best of me today. I'm trying to get
the tickdir update working with the patch below.


$ hg diff
diff --git a/src/graphics.cc b/src/graphics.cc
--- a/src/graphics.cc
+++ b/src/graphics.cc
@@ -4943,15 +4943,15 @@
                   (ystate > AXE_DEPTH_DIR ? 1 : 0) +
                   (zstate > AXE_DEPTH_DIR ? 1 : 0)) == 2);
   if (tickdirmode_is ("auto"))
-  {
-    // FIXME: tickdir should be updated (code below comes
-    //        from JHandles)
-    //autoMode++;
-    //TickDir.set(mode2d ? "in" : "out", true);
-    //autoMode--;
-  }
-
-  //double ticksign = (tickdir_is ("in") ? -1 : 1);
+    {
+      double ndim = calc_dimensions (gh_manager::get_object
(__myhandle__.value ()));
+      printf ("graphics.cc: ndim = %dn", ndim);
+      if (ndim == 3)
+        tickdir.set ("out", false);
+      else
+        tickdir.set ("in", false);
+    }
+
   double ticksign = (tickdirmode_is ("auto") ?
                      (mode2d ? -1 : 1) :
                      (tickdir_is ("in") ? -1 : 1));


When I run Octave and type "axis", I get the result below.


axis
error: base_graphics_object::get_properties: invalid graphics object
graphics.cc: ndim = 62914560
error: octave_base_value::matrix_value(): wrong type argument `<unknown
type>'
error: __go_axes__: A(I,J): row index out of bounds; value 1 out of bound 0
error: called from:
error:   /Users/bpabbott/Development/mercurial/default/scripts/plot/axes.m at
line 39, column 9
error:   /Users/bpabbott/Development/mercurial/default/scripts/plot/gca.m at
line 45, column 9
error:  
/Users/bpabbott/Development/mercurial/default/scripts/plot/__plt_get_axis_arg__.m
at line 64, column 11
error:   /Users/bpabbott/Development/mercurial/default/scripts/plot/axis.m at
line 134, column 26


Looks like "get_object (__myhandle__.value ()));" is the problem, but I don't
see what I need to change, so I'm sending out this SOS ;-)


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?35438>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]