MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / forward_time

Function forward_time

lib/matplotlib/streamplot.py:502–511  ·  view source on GitHub ↗
(xi, yi)

Source from the content-addressed store, hash-verified

500 speed = np.ma.sqrt(u_ax ** 2 + v_ax ** 2)
501
502 def forward_time(xi, yi):
503 if not dmap.grid.within_grid(xi, yi):
504 raise OutOfBounds
505 ds_dt = interpgrid(speed, xi, yi)
506 if ds_dt == 0:
507 raise TerminateTrajectory()
508 dt_ds = 1. / ds_dt
509 ui = interpgrid(u, xi, yi)
510 vi = interpgrid(v, xi, yi)
511 return ui * dt_ds, vi * dt_ds
512
513 def backward_time(xi, yi):
514 dxi, dyi = forward_time(xi, yi)

Callers 1

backward_timeFunction · 0.85

Calls 3

interpgridFunction · 0.85
TerminateTrajectoryClass · 0.85
within_gridMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…