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

Method update_trajectory

lib/matplotlib/streamplot.py:359–363  ·  view source on GitHub ↗
(self, xg, yg, broken_streamlines=True)

Source from the content-addressed store, hash-verified

357 self.mask._current_xy = (xm, ym)
358
359 def update_trajectory(self, xg, yg, broken_streamlines=True):
360 if not self.grid.within_grid(xg, yg):
361 raise InvalidIndexError
362 xm, ym = self.grid2mask(xg, yg)
363 self.mask._update_trajectory(xm, ym, broken_streamlines)
364
365 def undo_trajectory(self):
366 self.mask._undo_trajectory()

Callers 1

_integrate_rk12Function · 0.80

Calls 3

grid2maskMethod · 0.95
within_gridMethod · 0.80
_update_trajectoryMethod · 0.80

Tested by

no test coverage detected