StreamPlot
likes to sample points outside the plot region. For example,
res = Reap[StreamPlot[{Sqrt[x], y}, {x, 0, 1}, {y, 0, 1},
EvaluationMonitor :> Sow[{x, y}]]];
Show[res[[1]], ListPlot[res[[2]]]]
As in this example, this is typically not a problem. However, I have some numerically defined functions that are not well defined outside the region, which I'd like StreamPlot
to avoid. Is there an option or other trick to force StreamPlot
to not evaluate outside the plot region?