octave-maintainers
[Top][All Lists]
Advanced

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

Re: direction of axes in spy


From: c.
Subject: Re: direction of axes in spy
Date: Tue, 29 May 2007 20:02:57 +0200


On 29/mag/07, at 19:41, John W. Eaton wrote:

On 29-May-2007, David Bateman wrote:

| c. wrote:
| >
| > Dear all,
| > I recently saw a message about reversing the direction of axes in spy.m
| > but with 2.9.12+ it still looks  different from Matlab,
| > isn't the behaviour in the attached patch more compatible?
| > c.
| >
| >
| >
| Seems fine to me... Though it might be better to not reverse the y-axis | by manipulation of the "axis" command but with the property you suggested..

I checked in the following change.  OK?

jwe


scripts/ChangeLog:

2007-05-29  John W. Eaton  <address@hidden>

        * sparse/spy.m: Set axis to "ij" mode.


Index: scripts/sparse/spy.m
===================================================================
RCS file: /cvs/octave/scripts/sparse/spy.m,v
retrieving revision 1.8
diff -u -u -r1.8 spy.m
--- scripts/sparse/spy.m        7 May 2007 19:57:47 -0000       1.8
+++ scripts/sparse/spy.m        29 May 2007 17:40:45 -0000
@@ -57,6 +57,6 @@
     plot (j, i, LineSpec, "MarkerSize", markersize);
   endif

-  axis ([0, n+1, m+1, 0]);
+  axis ([0, n+1, m+1, 0], "ij");

 endfunction


That works fine,
thank you!
c.



reply via email to

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