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

[Pkg-octave-devel] Bug#492076: octave3.0: incorrect axis location properties



Francesco Potorti` wrote:
> package octave3.0
> tags 492076 upstream
> stop
> 
> Dear Octave maintainers,
> 
> The bug report reproduced below has been filed against the Debian 
> package and regards the upstream sources.  The report is recorded at
> http://bugs.debian.org/492076
> 
> Thanks,
> 
> Package: octave3.0
> Version: 1:3.0.1-4
> Severity: normal
> 
> octave> plot(1:2,3:4)
> octave> get(gca).yaxislocation
> ans = bottom
> octave> get(gca).xaxislocation
> ans = left
> 
> Notice how the default values are inverted.
> 

This is already fixed in 3.1.51+, but doesn't appear to be fixed in
3.0.1+.. I'd suggest a change like the attached. However I can't easily
generate a changeset for the 3.0.1+ tree at the moment.

D.
--- src/graphics.cc.orig	2008-07-27 02:13:35.286299933 +0200
+++ src/graphics.cc	2008-07-27 02:14:28.765957731 +0200
@@ -1140,8 +1140,8 @@
     xdir ("normal"),
     ydir ("normal"),
     zdir ("normal"),
-    xaxislocation ("bottom"),
-    yaxislocation ("left"),
+    xaxislocation ("left"),
+    yaxislocation ("bottom"),
     linewidth (0.5),
     view (),
     visible ("on"),
@@ -1441,8 +1441,8 @@
   xdir = "normal";
   ydir = "normal";
   zdir = "normal";
-  xaxislocation = "left";
-  yaxislocation = "bottom";
+  xaxislocation = "bottom";
+  yaxislocation = "left";
   linewidth = 0.5;
 
   Matrix tview (1, 2, 0.0);
@@ -1815,8 +1815,8 @@
   m["xdir"] = "normal";
   m["ydir"] = "normal";
   m["zdir"] = "normal";
-  m["xaxislocation"] = "bottom";
-  m["yaxislocation"] = "left";
+  m["xaxislocation"] = "left";
+  m["yaxislocation"] = "bottom";
   m["linewidth"] = 0.5;
 
   Matrix tview (1, 2, 0.0);

Reply to: