[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Plotting vectors
From: |
Robert A. Macy |
Subject: |
Re: Plotting vectors |
Date: |
Wed, 09 Aug 2006 19:53:51 -0700 |
Here's an old posting that may help...
= = = = = = = =
From: Donald J Bindner <address@hidden>
Subject: Re: splot and 6-part data
Date: Tue, 28 Mar 2006 16:59:32 -0600
To: "John W. Eaton" <address@hidden>
Cc: Donald J Bindner <address@hidden>, address@hidden
On Tue, Mar 28, 2006 at 05:01:25PM -0500, John W. Eaton
wrote:
> On 28-Mar-2006, Donald J Bindner wrote:
> To make this work, the gnuplot-style command parsing code
needs to be
> modified to write out a different form of data file for
the vector
> plot style.
>
> jwe
Consider this a gentle request then. I offer in ransom a
highly functional quiver3.m. It is working already, using
the
workaround I detailed earlier. I will be happy to adapt it
when
support exists. Source for my m-file, should anyone care,
is at:
http://limestone.truman.edu/repos/octave/quiver3.m
Don
--
Don Bindner <address@hidden>
= = = = = = =
- Robert -
On Thu, 10 Aug 2006 12:27:55 +1000
Geordie McBain <address@hidden>
wrote:
> On Wed, 2006-08-09 at 16:51 -0300, Gabriel F. Ideriha
> wrote:
> > Hi! What string should I use to plot a vector in a 2d
> graphic?
>
> As it happens, I was just working on this myself this
> morning. I attach
> my rudimentary solution to the problem. Run it with, for
> example:
>
> octave:22> x = y = linspace (-2, 2, 40);
> octave:23> [X, Y] = meshgrid (x, y);
> octave:24> u = Y./(X.^2+Y.^2);
> octave:25> v = -X./(X.^2+Y.^2);
> octave:26> qquiver (X, Y, u, v, 0.2)
>
> > I've tried using the "feather" string, but nothing
> happens
>
> What's "feather"?
>
> There is a function quiver in Octave Forge that's
> supposed to do this
> sort of thing:
> http://octave.sourceforge.net/index/f/quiver.html .
> However, when I attempt to click on the link in the top
> right of that
> page to see or download the source to quiver.m, nothing
> happens (my
> browser eventually times out). This'll probably be
> better if you can
> get it.
>
> There's also a function equiver in the EPS toolkit
> http://www.epstk.de .
>
> --
> Geordie McBain
> www.aeromech.usyd.edu.au/~mcbain
>
VectorPlotquiver3.m
Description: Binary data