octave-maintainers
[Top][All Lists]
Advanced

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

Re: 3.0.4 last call for patches


From: Daniel J Sebald
Subject: Re: 3.0.4 last call for patches
Date: Tue, 13 Jan 2009 01:31:43 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020

Jaroslav Hajek wrote:

If you care for a particular patch to be transplanted to 3.0.4
(bugfixes only), please point me to it.

One of these for vertical cell legends...

diff -Pur octave/scripts/ChangeLog octave_mod/scripts/ChangeLog
--- octave/scripts/ChangeLog    2009-01-12 23:53:52.000000000 -0600
+++ octave_mod/scripts/ChangeLog        2009-01-13 01:08:38.695907433 -0600
@@ -1,3 +1,8 @@
+2009-01-13  Daniel J Sebald  <address@hidden>
+
+       * plot/legend.m: Fix legend order for both horizontal and
+       vertical string cell.
+
 2009-01-12  John W. Eaton  <address@hidden>
 
        * optimization/fzero.m, optimization/fsolve.m: Style fixes.
diff -Pur octave/scripts/plot/legend.m octave_mod/scripts/plot/legend.m
--- octave/scripts/plot/legend.m        2009-01-13 01:11:01.099837733 -0600
+++ octave_mod/scripts/plot/legend.m    2009-01-13 01:14:45.777782836 -0600
@@ -165,13 +165,13 @@
        nargs = numel (varargin);
       endif
     elseif (iscellstr (arg))
-      varargin = fliplr (arg);
+      varargin = rot90 (arg, 2);
       nargs = numel (varargin);
     else
       error ("legend: expecting argument to be a character string");
     endif
   else
-    varargin(1:nargs) = fliplr (varargin(1:nargs));
+    varargin(1:nargs) = rot90 (varargin(1:nargs), 2);
   endif
 
   if (nargs > 0)
diff -Pur octave/scripts/ChangeLog octave_mod/scripts/ChangeLog
--- octave/scripts/ChangeLog    2009-01-12 23:53:52.000000000 -0600
+++ octave_mod/scripts/ChangeLog        2009-01-13 01:08:38.695907433 -0600
@@ -1,3 +1,8 @@
+2009-01-13  Daniel J Sebald  <address@hidden>
+
+       * plot/legend.m: Fix legend order for both horizontal and
+       vertical string cell.
+
 2009-01-12  John W. Eaton  <address@hidden>
 
        * optimization/fzero.m, optimization/fsolve.m: Style fixes.
diff -Pur octave/scripts/plot/legend.m octave_mod/scripts/plot/legend.m
--- octave/scripts/plot/legend.m        2009-01-13 01:11:01.099837733 -0600
+++ octave_mod/scripts/plot/legend.m    2009-01-13 01:25:39.531554815 -0600
@@ -165,13 +165,11 @@
        nargs = numel (varargin);
       endif
     elseif (iscellstr (arg))
-      varargin = fliplr (arg);
+      varargin = arg;
       nargs = numel (varargin);
     else
       error ("legend: expecting argument to be a character string");
     endif
-  else
-    varargin(1:nargs) = fliplr (varargin(1:nargs));
   endif
 
   if (nargs > 0)
@@ -191,7 +189,7 @@
   endif
 
   warned = false;
-  for i = 1:nargs
+  for i = nargs:-1:1
     arg = varargin{i};
     if (ischar (arg))
       while (k <= nkids

reply via email to

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