MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / within_grid

Method within_grid

site-packages/matplotlib/streamplot.py:342–346  ·  view source on GitHub ↗

Return True if point is a valid index of grid.

(self, xi, yi)

Source from the content-addressed store, hash-verified

340 return self.ny, self.nx
341
342 def within_grid(self, xi, yi):
343 """Return True if point is a valid index of grid."""
344 # Note that xi/yi can be floats; so, for example, we can't simply check
345 # `xi < self.nx` since `xi` can be `self.nx - 1 < xi < self.nx`
346 return xi >= 0 and xi <= self.nx - 1 and yi >= 0 and yi <= self.ny - 1
347
348
349class StreamMask(object):

Callers 2

update_trajectoryMethod · 0.80
_integrate_rk12Function · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected