Message Boards Message Boards

1
|
37433 Views
|
1 Reply
|
2 Total Likes
View groups...
Share
Share this post:

Is there a way to specify specific stream lines in StreamPlot?

Posted 12 years ago
It seems like StreamPlot and ListStreamPlot pick convenient stream lines to draw.
Is there a way to specify specific stream lines in StreamPlot

(Example post.)
POSTED BY: Bruce Miller
Bruce approved Miller:
It seems like StreamPlot and ListStreamPlot pick convenient stream lines to draw.
Is there a way to specify specific stream lines in StreamPlot? 

The option StreamPoints can be used to specify points defining stream lines to draw, but it requires digging 
in documentation to figure out how.

Specify lines by giving points on them. Note that the lines are extrapolated forward and backward from the starting points.
In the plot, the starting points are indicated by red dots.

data = Table[{{x, y}, {y, x - x^2}}, {x, -1.5, 1.5, 0.2}, {y, -2, 2, 0.2}];

ListStreamPlot[data,
   StreamPoints -> {{-1.5, 1.6}, {0.0, 0.5}, {1.4, 0}},
   Epilog -> {PointSize, Red,
   Point[{{-1.5, 1.6}, {0.0, 0.5}, {1.4, 0}}]}]

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

Group Abstract Group Abstract