Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #16599
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!transit3.readnews.com!newspump.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail |
|---|---|
| From | Roland Franzius <roland.franzius@uos.de> |
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: can we use ListVectorPlot to plot arrows? (tail at point, head |
| Date | Mon, 3 Mar 2014 02:28:03 +0000 (UTC) |
| Sender | steve@smc.vnet.net |
| Approved | Steven M. Christensen <steve@smc.vnet.net>, Moderator |
| Message-ID | <lf0pbj$4jn$1@smc.vnet.net> (permalink) |
| References | <le4e85$46h$1@smc.vnet.net> |
| Lines | 34 |
| Organization | Time-Warner Telecom |
| NNTP-Posting-Date | 03 Mar 2014 02:33:39 GMT |
| NNTP-Posting-Host | 2bd0375e.news.twtelecom.net |
| X-Trace | DXC=CN0RQ]ZRNjcIUHdLb3W^LeC_A=>8kQj6m;[h;PUXBgbd27hNd_eWRHdEFiONJ7[GofYS`2Wk\4mVj |
| X-Complaints-To | abuse@twtelecom.net |
| Xref | csiph.com comp.soft-sys.math.mathematica:16599 |
Show key headers only | View raw
Am 20.02.2014 09:26, schrieb Alan:
> Is there an option that will force ListVectorPlot to plot
> arrows from the points to the displacement? (By default,
> the point is in the middle of the arrow, not at its tail.)
> Using VectorPoints -> All, of course.
You can use VectorPlot as a primitive drawing tool and pimp the graphics
by replacing arrows and other elements by more colorful primitive graphics
the following rule replaces all arrows in a Graphics[] generated by
VectorPlot by a blue arrow and a red disc of radius 0.1 at the middle of
head and tail.
redpointarrow=
{ Arrow[{{x_, y_}, {u_, v_}}] :>
{Blue, Arrow[{{x, y}, {u, v}}], Red,
Disk[{(x + u)/2, (y + v)/2}, 0.1]}}
The option StreamPoints adds some integrated stream lines from the the
gradient of the vector field.
field[x_,x_]:=Evaluate[Grad[(x^2 + y) Exp[(-x y)/(x^2 + y^2)], {x, y}]]
ps = VectorPlot[field[x,y]], {x, -2, 2}, {y, -2, 2},
VectorPoints -> 7,
VectorStyle -> {"DotArrow"},
StreamPoints -> 12] /. redpointarrow;
ps
--
Roland Franzius
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar
can we use ListVectorPlot to plot arrows? (tail at point, head at displacement) Alan <alan.isaac@gmail.com> - 2014-02-20 08:26 +0000 Re: can we use ListVectorPlot to plot arrows? (tail at point, head at displacement) roby <roby.nowak@gmail.com> - 2014-03-02 06:51 +0000 Re: can we use ListVectorPlot to plot arrows? (tail at point, head Roland Franzius <roland.franzius@uos.de> - 2014-03-03 02:28 +0000
csiph-web