Group Abstract Group Abstract

Message Boards Message Boards

0
|
2.7K Views
|
3 Replies
|
1 Total Like
View groups...
Share
Share this post:

Manually plot vector with ListVectorPlot

Posted 3 years ago
POSTED BY: Phuong Nguyen
3 Replies

You can use graphic primitives:

Graphics[
 Map[Arrow[{#[[1]], #[[1]] + #[[2]]}] &, {{{0, 1}, {1, 1}}, {{2, 
     3}, {1, 2}}, {{0, 2}, {1, 1}}}], Frame -> True]
POSTED BY: Gianluca Gorni

With some Mathematica knowledge you can do whatever:

Graphics[
 Map[{Thickness[RandomReal[{.001, .05}]], 
    Arrowheads[(#[[1, 1]] + #[[2, 2]])/10], RandomColor[], 
    Arrow[{#[[1]], #[[1]] + #[[2]]}]} &, {{{0, 1}, {1, 1}}, {{2, 
     3}, {1, 2}}, {{0, 2}, {1, 1}}}], Frame -> True]
POSTED BY: Gianluca Gorni
Posted 3 years ago

Thanks for the suggestion Gianluca,

I guess that then there is no way to use the ListVectorPlot, because with the Graphic function, it will be quite annoying to format the graph, e.g. color, style of each vector (at least with my Mathematica knowledge).

POSTED BY: Phuong Nguyen
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard