Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: ListVectorPlot - plotting at specific points

  • To: mathgroup at smc.vnet.net
  • Subject: [mg112605] Re: ListVectorPlot - plotting at specific points
  • From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
  • Date: Thu, 23 Sep 2010 04:19:36 -0400 (EDT)
  • References: <i79hsl$ofn$1@smc.vnet.net>

A certain minimum number of points seems to be necessary. You might
also want to use the option VectorPoints->All to use only the points
provided without interpolation.

The following works:

ListVectorPlot[{{{0, 0}, {1, 1}}, {{1, 0}, {1, 1}}, {{0, 1}, {1, 1}}},
  VectorPoints -> All]

Cheers -- Sjoerd

On Sep 21, 8:04 am, gopher <gopherg... at gmail.com> wrote:
> Contrary to the documentation, listing pairs of points and vectors i.e
>
> ListVectorFieldPlot[{{{0, 0}, {1, 1}}}]
> gives an error:
>
> ListVectorPlot::vfldata: {{{0,0},{1,1}}} is not a valid vector field
> dataset or a valid list of datasets.
>
> .After a lot of searching I found that the deprecated
> << "VectorFieldPlots`"
> ListVectorFieldPlot[{{{0, 0}, {1, 1}}}]
> does work, but doesn't look as nice, especially the 3d version.
> Various settings of the VectorPoints options also don't work. Is there
> a solution? I am trying to make some simple examples of vector fields
> on spheres to illustrate the Hairy Ball theorem.
>
> Abhishek



  • Prev by Date: Re: Using Mathematica remotely (installed on Mac,
  • Next by Date: Re: Summing above diagonal in a tensor
  • Previous by thread: Re: ListVectorPlot - plotting at specific points
  • Next by thread: should Positive[ complexNumber ] return undefined instead of False?